event = script.Parent
plr = game.Players.LocalPlayer
plr.CharacterAdded:Wait()
hum = plr.Character:FindFirstChild("Humanoid")
COMMUNITY QUESTION
why is "hum" (Humanoid) nil? I simply cannot understand...
1 answer
The code runs before the humanoid loads. you can use WaitForChild to ensure that the humanoid loads before it assigns the variable
hum = plr.Character:WaitForChild("Humanoid")
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Yes
nope, tried this and numerous other methods.