Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

anybody know why this local variable isnt working?

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

2 comments

0

Is the script a server script? If so, try turning the script into a local script.

0

it is a local script already

1 answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.