Advertisement
Mitko1223tm

shutdown

Mar 25th, 2018
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1.  
  2.  
  3. wait(5) -- Wait 5 seconds after running just in case you accidentally run it and want to stop it.
  4. local msg = Instance.new("Message",game.Workspace) -- Make the message and put it somewhere that they can see it
  5. msg.Text = "TM is about to shut down the server. Please save your scripts now." -- Tell them to save, because the shutdown is about to happen
  6. wait(2)
  7. msg.Text = "This server will shut down in 5 seconds."
  8. wait(1)
  9. msg.Text = "This server will shut down in 4 seconds."
  10. wait(1)
  11. msg.Text = "This server will shut down in 3 seconds."
  12. wait(1)
  13. msg.Text = "This server will shut down in 2 seconds."
  14. wait(1)
  15. msg.Text = "This server will shut down in 1 second."
  16. wait(1)
  17. msg.Text = "Shutdown initiating..."
  18. wait(3)
  19. msg.Text = "Goodbye!"
  20. wait(1)
  21. for _,v in ipairs(game.Players) do -- For every player that is in the game...
  22. v:Kick("TM kicked you from the server!") -- Kick them and show a message that says they were kicked
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement