local player = game.Players.LocalPlayer
local HumanoidHealth = player.Humanoid.Health
wait(10)
HumanoidHealth = 0
COMMUNITY QUESTION
why wont my instant humanoid.kill script work for my game?
2 answers
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
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
You can't allocate properties as pointers, the compiler will simply just store its current value. Instead, use Humanoid.Health = 0.