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
3. (Group Activity) Changing variables and properties in Lua
We know how to add to variables in Scratch, but how do we do it in a totally different language?
This challenge doesn't have a starting point
Hint: show steps
Steps
1. What does adding to variables look like?
Hint: show details
When you add to variables in Lua, a lot of times you'll make a variable equal to itself PLUS a number. So:
Player.Height = Player.Height + 5
Would add 5 to the player's height.
NanoTheRobot.Speed = NanoTheRobot.Speed + 12
Adds 12 to Nano the robot's speed
2. How would we write these?
Hint: show details
These are silly examples, and there's not really a right answer, but try imagining if these were written in Lua code. Type your ideas to the chat.
How would you make your own hair grow 40 inches?
How would you add 100 to your running speed?
How would you SUBTRACT 1 inch from your height?
×
×
Provide your email address for immediate project access
Email
Check your email for instructions on how to create a full DA account