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
8. If it was a humanoid, upgrade the player and delete the powerup
This code will go inside the "then" of the previous if-statement. Using what we learned from the group activity, you'll want to add +10 to the player's JumpPower and WalkSpeed.
Starting point file for this challenge
Hint: show steps
Steps
1. Access the player's JumpPower
Hint: show details
JumpPower is stored in the humanoid object.
humanoid.JumpPower
Hint: show image
Hint: show code
2. Add 10 to the player's JumpPower
Hint: show details
Make JumpPower equal to itself plus 10.
humanoid.JumpPower = humanoid.JumpPower + 10
Hint: show image
Hint: show code
3. Repeat for WalkSpeed
Hint: show details
Hit return on your keyboard to create a new line. This new line will be almost identical to the above line, but with WalkSpeed instead of JumpPower.
humanoid.WalkSpeed = humanoid.WalkSpeed + 10
Hint: show image
Hint: show code
4. Destroy the powerup
Hint: show details
Call the Destroy() function on the powerup.
powerup:Destroy()
Hint: show image
Hint: show code
×
×
Provide your email address for immediate project access
Email
Check your email for instructions on how to create a full DA account