Sign in
Home
Online Classes
Instructors
Tutorials
☰
Register
Sign in
Online Classes
Instructors
Tutorials
1. Open Roblox Studio and load the starter kit
2. Explore the maze
3. Add a script to your door
4. Label the door in the script
5. Create a function for opening the door
6. Activate the function
7. Close the door again
8. (Challenge) Create a bigger maze
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
Hint: show steps
Steps
1. Exit play mode by pressing "stop"
Hint: show details
Find the big red "stop" button to exit play mode and go back into editing your game.
Hint: show image
2. Find and open your workspace in the explorer window
Hint: show details
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.
Hint: show image
3. Find your door
Hint: show details
Inside the workspace, do you see something labelled "door?" The door is a "child" of the workspace, because it's inside it.
Hint: show image
4. Give the door a script
Hint: show details
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!
Hint: show image
×
×
Provide your email address for immediate project access
Email
Check your email for instructions on how to create a full DA account