Advertisement
HowToRoblox

SoftShutdownPlace1

Jan 15th, 2022
2,640
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. local tps = game:GetService("TeleportService")
  2. local placeId = 8548387026
  3.  
  4.  
  5. game:BindToClose(function()
  6.    
  7.     for i, player in pairs(game.Players:GetPlayers()) do
  8.        
  9.         player.PlayerGui.ShutdownGui.Enabled = true
  10.     end
  11.    
  12.     local tpOptions = Instance.new("TeleportOptions")
  13.     tpOptions.ShouldReserveServer = true
  14.    
  15.     wait(10)
  16.  
  17.     tps:TeleportAsync(placeId, game.Players:GetPlayers(), tpOptions)
  18.    
  19.     wait(5)
  20. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement