I get this error everytime :
Players.ItsAntonio_xD.PlayerScripts.LocalScript:1: attempt to index nil with 'WaitForChild'
The code:
local humanoid = script.Parent.Parent.Character:WaitForChild("Humanoid") humanoid.Jumping:Connect(function() print("hey") end)
And if I remove the "WaitForChild" I get the same error
The script is in StarterPlayerScripts, and it is a local script too
wait() -- add some kind of wait so that you'll have enough time for the player to load, otherwise you'll receive an error local player = game.Players.LocalPlayer.Character local humanoid = player.Humanoid humanoid:GetPropertyChangedSignal("Jump"):Connect(function() print("hey") end)