Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function onGameUpdate()
- -- Get a list of all players
- local players = game:GetService("Players"):GetPlayers()
- -- Kick each player
- for i, player in pairs(players) do
- player:Kick()
- end
- -- Update the game
- game:SetPlaceID(game.PlaceId)
- end
- game.OnClose = onGameUpdate
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement