Is there any way to make all players reset one time?

  1. What do you want to achieve? I wanna make players reset one time

  2. What is the issue? i dont know how to do that

is this wrong category? if yes tell me

Here it is:

while true do
    for _, player in pairs(game.Players:GetPlayers()) do
        -- Check if the player has a character and if it's alive
        if player.Character and player.Character:FindFirstChild("Humanoid") and player.Character.Humanoid.Health > 0 then
            -- Reduce the player's health to zero to "reset" them
            player.Character.Humanoid.Health = 0
1 Like