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

Steps

1. Access the player's JumpPower

JumpPower is stored in the humanoid object. 

humanoid.JumpPower

2. Add 10 to the player's JumpPower

Make JumpPower equal to itself plus 10. 

humanoid.JumpPower = humanoid.JumpPower + 10

3. Repeat for WalkSpeed

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

4. Destroy the powerup

Call the Destroy() function on the powerup. 

powerup:Destroy()