SHOW:
|
|
- or go back to the newest paste.
1 | wait(1) | |
2 | script.Parent = game.Players.ClockworkHorror.PlayerGui | |
3 | - | script.Parent = game.Players.CharcoalBurns.PlayerGui |
3 | + | |
4 | newgui = Instance.new("ScreenGui",game.Players.ClockworkHorror.PlayerGui) | |
5 | - | newgui = Instance.new("ScreenGui",game.Players.CharcoalBurns.PlayerGui) |
5 | + | |
6 | admframe.Size = UDim2.new(0, 150, 0, 300) | |
7 | admframe.BackgroundColor3 = Color3.new(151, 158, 255) | |
8 | kckall = Instance.new("TextButton",admframe) | |
9 | kckall.Size = UDim2.new(0, 150, 0, 20) | |
10 | kckall.Text = "Shutdown/kick all" | |
11 | daytm = Instance.new("TextButton",admframe) | |
12 | daytm.Text = "Day time" | |
13 | daytm.Position = UDim2.new(0, 0, 0, 22) | |
14 | daytm.Size = UDim2.new(0, 150, 0, 20) | |
15 | nighttm= Instance.new("TextButton",admframe) | |
16 | nighttm.Text = "Night time" | |
17 | nighttm.Position = UDim2.new(0, 0, 0, 42) | |
18 | nighttm.Size = UDim2.new(0, 150, 0, 20) | |
19 | clrwkspc= Instance.new("TextButton",admframe) | |
20 | clrwkspc.Text = "Clean workspace" | |
21 | clrwkspc.Position = UDim2.new(0, 0, 0, 62) | |
22 | clrwkspc.Size = UDim2.new(0, 150, 0, 20) | |
23 | ||
24 | ||
25 | function day() | |
26 | game.Lighting.TimeOfDay = 7 | |
27 | end | |
28 | daytm.MouseButton1Click:connect(day) | |
29 | ||
30 | function night() | |
31 | game.Lighting.TimeOfDay = 18 | |
32 | end | |
33 | nighttm.MouseButton1Click:connect(night) | |
34 | ||
35 | function night() | |
36 | game.Lighting.TimeOfDay = 18 | |
37 | end | |
38 | clrwkspc.MouseButton1Click:connect(clrwkspc) | |
39 | ||
40 | function kickall() | |
41 | local p = game.Players:GetChildren() | |
42 | for i=1,#p do | |
43 | if p[i].className == "Player" then | |
44 | p[i]:Destroy() | |
45 | end | |
46 | end | |
47 | end | |
48 | kckall.MouseButton1Click:connect(kickall) |