How would I determine if a player didn't die during a game round? (I'm making a round-based game and need to make a "survived players" system thingy whatever lol)
You need to add a boolValue of Whether the player survived the round or not. Make another script to tell this one when round ends.
Player = game.Players.LocalPlayer Died = Instance.new("BoolValue",Player) Died.Value = false print("PlayerDied"..Died) Character = Player.Character print(Character) Human = Character.Humanoid print(Human) Human.Died:connect(function(Dead) print("He died") Died.Value = true end) --make code here to signal end of round if roundIsOver == true then if Died == true then print("Player Died") else print("PlayerSurvived") end end Died = false
Ps make sure its a LocalScript and in starter player scripts or it wont work