Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why wont it set the players heath to 0 help?

Asked by 4 years ago

So bassicaly i made a part that kill player when u is close, but when u are close it does not kill the player pls help:

while true do
    wait()
    local player = game.Players.LocalPlayer
    local char = player.Character
    local distance = (workspace.LivingroomMonster.Position - char.LowerTorso.Position).Magnitude 
    if distance > 25 then
        print("Far form  monter")
    else
        char.Humanoid.Health = 0
    end
end
0
Where's your script located in the game? mattslow 0 — 4y
0
in the monster AronIZCool 11 — 4y

Answer this question