local player = game.Players.LocalPlayer local HumanoidHealth = player.Humanoid.Health wait(10) HumanoidHealth = 0
I should be commenting this instead since it's a simple thing, here anyways
local player = game.Players.LocalPlayer local HumanoidHealth = player.Character.Humanoid.Health wait(10) HumanoidHealth = 0
The player is the player, We're getting the character from the player. So player.Character
you forgot to mention the player!:
local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local HumanoidHealth = character.Humanoid.Health wait(10) HumanoidHealth = 0