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