Sign in
Home
Online Classes
Instructors
Tutorials
☰
Register
Sign in
Online Classes
Instructors
Tutorials
1. Open Roblox Studio and load the starter kit
2. Test the game
3. (Group Activity) Changing variables and properties in Lua
4. Add a script to the powerup
5. Label the powerup in the script
6. Create a function for upgrading the player
7. Check if the player is a humanoid
8. If it was a humanoid, upgrade the player and delete the powerup
9. Activate the function
10. Duplicate the scripts into all powerups
11. Make the obstacle course bigger
Project 536: Skyjumper
4. Add a script to the powerup
To give instructions to your powerup, you'll need to give it a script.
This challenge doesn't have a starting point
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 powerup
Hint: show details
Inside the workspace, do you see something labelled "powerup"?
There's a few powerups in here, let's just focus on one for now.
The powerup is a "child" of the workspace, because it's inside it.
Hint: show image
4. Give the powerup a script
Hint: show details
Click on the plus button next to your powerup 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