Project 374: Key and Door Maze

3. Add a script to your door

To give instructions to your door, you'll need to give it a script. 
Starting point file for this challenge

Your goal

Steps

1. Exit play mode by pressing "stop"

Find the big red "stop" button to exit play mode and go back into editing your game. 

2. Find and open your workspace in the explorer window

Your explorer window will probably be on the left side of Roblox studio, labeled "Explorer." This window lists everything in your game! 

Click on the triangle next to "Workspace" to twirl it open. "Workspace" is like the world of the game, and it will hold all your objects. 

The Workspace is currently the "parent" of all your objects, because it's holding onto all of them. 

3. Find your door

Inside the workspace, do you see something labelled "door?" The door is a "child" of the workspace, because it's inside it. 

4. Give the door a script

Click on the plus button next to your door object, and type in "script." Hit "enter" on your keyboard to add your script. A script window will open up!