Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- count = 120 --Time until server shuts down
- msg = "Warning Server Self Destructing,Please evacuate"
- ---DO NOT EDIT BELOW!
- function Paint(Brick)
- Brick.BrickColor = BrickColor.new("Really black")
- Brick.Material = "CorrodedMetal"
- Brick.CFrame=CFrame.new(Brick.Position,Vector3.new(math.random(),math.random(),math.random()))
- end
- function Search(Object)
- print(Object)
- coroutine.resume(coroutine.create(Paint), Object)
- local Children = Object:GetChildren()
- for X = 1, # Children do
- Search(Children[X])
- end
- end
- Search(game.Workspace)
- m = Instance.new("Message")
- m.Parent = game.Workspace
- for i = 1,count do
- wait(1)
- m.Text = "" ..count .."(" ..msg ..")"
- count = count - 1
- end
- m.Text = "Server Self-Destructed"
- function shutdown()
- while true do
- wait()
- a = game.Players:GetChildren()
- for i = 1, #a do
- a[i]:remove()
- end
- end
- end
- if count == 0 then
- shutdown()
- end
Add Comment
Please, Sign In to add comment