We’re introducing Meta accounts in August 2022: a new way to log into VR devices that doesn’t require a Facebook account. Learn more

ATTACH SCRIPTS

Remember that trigger we put under our world? Open up the properties panel, and at the bottom right there is an Attached Script drop down. Select Respawn to attach your script.

PREREQUISITE READING

VARIABLES precedes this tutorial


Down below, you’ll notice the object variable you created is listed as empty. This is where we will reference our spawn point. Open the properties panel of your world’s spawn point, and using your laser pointer, click on the top to take the properties panel with you. You can easily position the property panels next to each other using your thumbstick to resize and move the panel you are holding.
Drag and drop the reference pill with your laser pointer into the area that says empty on your trigger. You will now see that it says Spawn Point, which means it is referenced properly.
Be sure to test it out by jumping off your world! Congratulations on making your first script!

Next Up