Answered by
6 years ago Edited 6 years ago
The problem here is that JumpPower isn't a property of the player object, it is a property of the humanoid, something like this might work :
1 | script.Parent.Touched:connect( function (hit) |
2 | local plr = game.Players:GetPlayerFromCharacter(hit.Parent) |
4 | plr.Character.Humanoid.JumpPower = 90 |
Also: you forgot to close the event with an end), and the argument of the function in the Touched event isn't the player that touched an object, it is the thing that touched the object