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

how to make a function detect when someone dies?

Asked by 3 years ago

I have it set where when i player grabs a weapon it forces them to chat then whenever the player dies I want it to stop sending the chat until they grab the gun again

while player.Character.Humanoid.Health > 0 do

            game:GetService("Chat"):Chat(player.Character.Head, Strings[math.random(1, #Strings)])
            wait(30)
        end
0
You can accomplish this by using the function break followed by an if statement. JesseSong 3916 — 3y
0
how would i write that? TheMiniMagic_YT 27 — 3y

Answer this question