Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How would you make a game script restart, when you use event 'PlayerRemoving'?

How would you make the script say something like

print ("player has forfeited match")

When a player leaves, and then have it skip the "Duel" like game, and restart to the beginning where it picks the players again?

1 answer

game.Players.PlayerRemoving:connect(function(player)
if player.Battle == true then --This would be a bool value type thing.
print("player has forfeited match")
--Put the rest here. Because there are 1,000,000s of ways of doing it.
end
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.