PlayerAdded script won't work to change Humanoid? [closed]
This script won't work and I keep on checking the wiki ( wiki.Roblox.com )
The ROBLOX wiki says it is right for the locals of the player but in my Output it says that it is a nil value.
~ Script ~
01 | local Values = game.ReplicatedStorage.Values |
02 | local StarterGui = game.StarterGui |
03 | local player = game.Players.LocalPlayer |
04 | local character = player.Character |
06 | function onPlayerAdded(player) |
07 | local player = game:GetService( "Players" ).LocalPlayer |
08 | local character = player.Character |
09 | character.Humanoid.WalkSpeed = 0 |
10 | character.Humanoid.JumpPower = 0 |
13 | player.PlayerAdded:connect(onPlayerAdded) |
Closed as Non-Descriptive by Goulstem
This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.
Why was this question closed?