SHOW:
|
|
- or go back to the newest paste.
1 | - | wait(0.5) |
1 | + | count = 120 --Time until server shuts down |
2 | msg = "Warning Server Self Destructing,Please evacuate" | |
3 | - | m.Text = ("RIP server") |
3 | + | |
4 | ---DO NOT EDIT BELOW! | |
5 | - | game.Workspace.Gravity = -10 |
5 | + | |
6 | function Paint(Brick) | |
7 | - | for i,v in pairs(game.Workspace:GetChildren()) do |
7 | + | |
8 | - | if v:IsA("Part")then |
8 | + | Brick.BrickColor = BrickColor.new("Really black") |
9 | - | v.BrickColor = BrickColor.new('Bright voilet') |
9 | + | Brick.Material = "CorrodedMetal" |
10 | - | v.Name = ("locked") |
10 | + | Brick.CFrame=CFrame.new(Brick.Position,Vector3.new(math.random(),math.random(),math.random())) |
11 | - | v.Locked = true |
11 | + | |
12 | - | v.Anchored = false |
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 |