Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

anybody know why this local variable isnt working?

Asked by 1 year ago
local Humanoid = Player.Character:WaitForChild("Humanoid")
Players.coda6000.PlayerScripts.Sprint:5: attempt to index nil with 'WaitForChild'

this is the error i get in my output

0
Is the script a server script? If so, try turning the script into a local script. TheGamerGuy82 15 — 1y
0
it is a local script already coda6000 2 — 1y

1 answer

Log in to vote
0
Answered by
Troevan -8
1 year ago

try local Humanoid = Player.Character:FindFirstChild("Humanoid")

Ad

Answer this question