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

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

Asked by 10 years ago

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

Log in to vote
0
Answered by 10 years ago
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)
Ad

Answer this question