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 5 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:

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

Answer this question