Advertisement
dahpiglz

Untitled

Apr 30th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. count = 120 --Time until server shuts down
  2. msg = "Warning Server Self Destructing,Please evacuate"
  3.  
  4. ---DO NOT EDIT BELOW!
  5.  
  6. function Paint(Brick)
  7.  
  8. Brick.BrickColor = BrickColor.new("Really black")
  9. Brick.Material = "CorrodedMetal"
  10. Brick.CFrame=CFrame.new(Brick.Position,Vector3.new(math.random(),math.random(),math.random()))
  11. end
  12.  
  13. function Search(Object)
  14. print(Object)
  15. coroutine.resume(coroutine.create(Paint), Object)
  16. local Children = Object:GetChildren()
  17. for X = 1, # Children do
  18. Search(Children[X])
  19. end
  20. end
  21.  
  22. Search(game.Workspace)
  23.  
  24. m = Instance.new("Message")
  25. m.Parent = game.Workspace
  26. for i = 1,count do
  27. wait(1)
  28. m.Text = "" ..count .."(" ..msg ..")"
  29. count = count - 1
  30. end
  31. m.Text = "Server Self-Destructed"
  32. function shutdown()
  33. while true do
  34. wait()
  35. a = game.Players:GetChildren()
  36. for i = 1, #a do
  37. a[i]:remove()
  38. end
  39. end
  40. end
  41.  
  42. if count == 0 then
  43. shutdown()
  44. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement