local player = Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoid = character:WaitForChild("Humanoid")

: The script doesn't re-bind when a player's character resets.

local humanoid = player.Character:FindFirstChild("Humanoid") if not humanoid then return end