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

Roblox: Game shutdowner Timer script?

Asked by 7 years ago

How do i create a Shutdown timer in game so the game shutdown auto sometimes to fix server

0
You can just kick all the players. FiredDusk 1466 — 7y

1 answer

Log in to vote
0
Answered by
FiredDusk 1466 Moderation Voter
7 years ago

If this helps, please accept my answer. I am not sure if there is a way to shut a server down, I will just use kicking.

-- The scope below will loop through the service of "Players" and get all players. It then kicks all the players.
for i,Player in pairs(game.Players:GetPlayers()) do 
    Player:Kick('Game has shutdown') -- Kick uses a parameter of the message, you can change he message.
end
0
Ah, never knew that, thanks! FiredDusk 1466 — 7y
0
@Programical According to that wiki document, it can't be used in scripts, and only the command bar can it be used. TheeDeathCaster 2368 — 7y
Ad

Answer this question