Ad
Log in to vote
0

anybody know why this local variable isnt working?

Asked by 4 days 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 8 — 4d
0
it is a local script already coda6000 2 — 3d

1 answer

Log in to vote
0
Answered by
Troevan -8
2 days ago

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

Ad

Answer this question