1 | --Local Script |
2 | tool = script.Parent |
3 | tool.Equipped:connect( function () |
4 | game.Players.LocalPlayer.JumpHeight = 100 |
5 | end ) |
I am confused with line 3. Someone please show me the error and make a example that works..
Sorry about my bad English.
Local Player
gets the player. JumpHeight
is not a property of the player. JumpPower
is a property of the Humanoid
inside the character
. To get the character, use .Character
on the player. After we get the character we can get the Humanoid. Example,
1 | --Local Script |
2 | local tool = script.Parent |
3 |
4 | tool.Equipped:connect( function () |
5 | game.Players.LocalPlayer.Character.Humanoid.JumpPower = 100 |
6 | end ) |
Good Luck!