SebTDZ

Reload Server

Jun 29th, 2019
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.94 KB | None | 0 0
  1. for i,v in pairs(game.Players:GetPlayers()) do
  2. local GuiScreen = Instance.new("ScreenGui", v.PlayerGui)
  3. GuiScreen.Name = "ac"
  4.  
  5. local GuiFrame = Instance.new("Frame", GuiScreen)
  6. GuiFrame.Name = "ac"
  7. GuiFrame.Size = UDim2.new(1, 0, 1, 0)
  8. BackgroundColor3 = Color3.new(99,82,100)
  9.  
  10. local Text = Instance.new("TextLabel", GuiFrame)
  11. Text.Text = "Reloading Server"
  12. Text.BackgroundColor3 = Color3.new(0.384314, 0.384314, 0.384314)
  13. Text.BackgroundTransparency = 1
  14. Text.BorderSizePixel = 0
  15. Text.Size = UDim2.new(1, 0, 0.1, 0)
  16. Text.Font = Enum.Font.SciFi
  17. Text.TextSize = 50
  18.  
  19. local Text2 = Instance.new("TextLabel", GuiFrame)
  20. Text2.Name = "ac"
  21. Text2.Text = "Loading"
  22. Text2.BackgroundColor3 = Color3.new(0.384314, 0.384314, 0.384314)
  23. Text2.BackgroundTransparency = 1
  24. Text2.BorderSizePixel = 0
  25. Text2.Position = UDim2.new(0, 0, 0.4, 0)
  26. Text2.Size = UDim2.new(1, 0, 0.1, 0)
  27. Text2.Font = Enum.Font.SciFi
  28. Text2.TextSize = 30
  29.  
  30. end
  31.  
  32. pcall(function(s)
  33.  
  34. for i,v in pairs(game.Players:GetPlayers()) do
  35.     if v.PlayerGui:FindFirstChild("ac") then
  36.         v.PlayerGui:FindFirstChild("ac").ac.ac.Text = "Loading"
  37.     end
  38. end
  39. for i=1,3 do
  40.     for i,v in pairs(game.Players:GetPlayers()) do
  41.         if v.PlayerGui:FindFirstChild("ac") then
  42.             v.PlayerGui:FindFirstChild("ac").ac.ac.Text = v.PlayerGui:FindFirstChild("ac").ac.ac.Text .. "."
  43.         end
  44.     end
  45.     wait(0.5)
  46. end
  47. for i,v in pairs(game.Players:GetPlayers()) do
  48.     if v.PlayerGui:FindFirstChild("ac") then
  49.         v.PlayerGui:FindFirstChild("ac").ac.ac.Text = "Loading"
  50.     end
  51. end
  52. for i=1,3 do
  53.     for i,v in pairs(game.Players:GetPlayers()) do
  54.         if v.PlayerGui:FindFirstChild("ac") then
  55.             v.PlayerGui:FindFirstChild("ac").ac.ac.Text = v.PlayerGui:FindFirstChild("ac").ac.ac.Text .. "."
  56.         end
  57.     end
  58.     wait(0.5)
  59. end
  60. for i,v in pairs(game.Players:GetPlayers()) do
  61.     if v.PlayerGui:FindFirstChild("ac") then
  62.         v.PlayerGui:FindFirstChild("ac").ac.ac.Text = "Loading"
  63.     end
  64. end
  65. for i=1,3 do
  66.     for i,v in pairs(game.Players:GetPlayers()) do
  67.         if v.PlayerGui:FindFirstChild("ac") then
  68.             v.PlayerGui:FindFirstChild("ac").ac.ac.Text = v.PlayerGui:FindFirstChild("ac").ac.ac.Text .. "."
  69.         end
  70.     end
  71.     wait(0.5)
  72. end
  73. for i,v in pairs(game.Players:GetPlayers()) do
  74.     if v.PlayerGui:FindFirstChild("ac") then
  75.         v.PlayerGui:FindFirstChild("ac").ac.ac.Text = "Loading"
  76.     end
  77. end
  78. end)
  79.  
  80. pcall(function(s)
  81. for i,v in pairs(game.Workspace:GetChildren()) do
  82.     if v.Name == "Terrain" then
  83.         local a=1
  84.     else
  85.         v:Remove()
  86.     end
  87. end
  88.  
  89. for i,plr in pairs(game.Players:GetPlayers()) do
  90.     plr:LoadCharacter()
  91.     if plr.PlayerGui:FindFirstChild("ac") then
  92.         plr.PlayerGui:FindFirstChild("ac"):Remove()
  93.     end
  94. end
  95.  
  96. local NewBase = Instance.new("Part", game.Workspace)
  97. NewBase.Name = "Base"
  98. NewBase.Locked = true
  99. NewBase.Size = Vector3.new(700,1.2,700)
  100. NewBase.Anchored = true
  101. NewBase.Material = Enum.Material.Grass
  102. NewBase.TopSurface = Enum.SurfaceType.Smooth
  103. NewBase.BottomSurface = Enum.SurfaceType.Smooth
  104. NewBase.BrickColor = BrickColor.new("Bright green")
  105. end)
Add Comment
Please, Sign In to add comment