SHOW:
|
|
- or go back to the newest paste.
1 | --kohls admin house bc | |
2 | warn("Kohls Admin House bc Admin") | |
3 | - | print("Written by: Bloxy") |
3 | + | print("Written by: Rthro_avatarr") |
4 | ||
5 | slock = false | |
6 | plr = game.Players.LocalPlayer | |
7 | prefix = ":" | |
8 | banned = {} | |
9 | ||
10 | function GetPlayer(String) -- timeless/xfunnieuss | |
11 | local Found = {} | |
12 | local strl = String:lower() | |
13 | if strl == "all" then | |
14 | for i,v in pairs(game.Players:GetPlayers()) do | |
15 | table.insert(Found,v) | |
16 | end | |
17 | elseif strl == "others" then | |
18 | for i,v in pairs(game.Players:GetPlayers()) do | |
19 | if v.Name ~= game.Players.LocalPlayer.Name then | |
20 | table.insert(Found,v) | |
21 | end | |
22 | end | |
23 | elseif strl == "me" then | |
24 | for i,v in pairs(game.Players:GetPlayers()) do | |
25 | if v.Name == game.Players.LocalPlayer.Name then | |
26 | table.insert(Found,v) | |
27 | end | |
28 | end | |
29 | else | |
30 | for i,v in pairs(game.Players:GetPlayers()) do | |
31 | if v.Name:lower():sub(1, #String) == String:lower() then | |
32 | table.insert(Found,v) | |
33 | end | |
34 | end | |
35 | end | |
36 | return Found | |
37 | end | |
38 | ||
39 | plr.Chatted:Connect(function(msg) | |
40 | if string.sub(msg, 1, 11) == (prefix.."btools me") then | |
41 | wait(1) | |
42 | for i,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do | |
43 | if v:IsA'Tool' then | |
44 | v.CanBeDropped = true | |
45 | warn("you can now drop btools.") | |
46 | end | |
47 | end | |
48 | end | |
49 | end) | |
50 | ||
51 | plr.Chatted:Connect(function(msg) | |
52 | if string.sub(msg, 1, 6) == (prefix.."kick ") then | |
53 | for i,v in pairs(GetPlayer(string.sub(msg, 7))) do | |
54 | local remote = game.Workspace.Delete.delete | |
55 | remote:FireServer(v) | |
56 | wait() | |
57 | print("Kicked:", v.Name) | |
58 | end | |
59 | end | |
60 | end) | |
61 | ||
62 | ||
63 | ||
64 | plr = game.Players.LocalPlayer | |
65 | plr.Chatted:Connect(function(ok) | |
66 | if string.sub(ok, 1) == (prefix.. "admin") then | |
67 | now = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame | |
68 | ||
69 | game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame | |
70 | = | |
71 | game.Workspace.Terrain.GameFolder.Admin.Pads['Touch to get admin'].Head.CFrame | |
72 | ||
73 | wait(0.2) | |
74 | ||
75 | game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = now | |
76 | end | |
77 | end) | |
78 | ||
79 | plr.Chatted:connect(function(wtf) | |
80 | if string.sub(wtf, 1) == (prefix.. "shutdown") then | |
81 | for i,v in pairs(game.Players:GetPlayers()) do | |
82 | if v~= plr then | |
83 | local remote = game.Workspace.Delete.delete | |
84 | remote:FireServer(v) | |
85 | end | |
86 | end | |
87 | end | |
88 | end) | |
89 | ||
90 | ||
91 | plr.Chatted:connect(function(lol) | |
92 | if string.sub(lol, 1) == (prefix.. "slock") then | |
93 | slock = true | |
94 | warn'Server Locked!' | |
95 | end | |
96 | end) | |
97 | ||
98 | plr.Chatted:Connect(function(oyes) | |
99 | if string.sub(oyes, 1) == (prefix.. "unslock") then | |
100 | slock = false | |
101 | warn'Server Unlocked!' | |
102 | end | |
103 | end) | |
104 | ||
105 | ||
106 | plr.Chatted:connect(function(wtf) | |
107 | if string.sub(wtf, 1) == (prefix.. "shutdown") then | |
108 | wait(0.7) | |
109 | plr:Kick'Shutdown game.' | |
110 | end | |
111 | end) | |
112 | ||
113 | ||
114 | game.Players.PlayerAdded:connect(function(xDDD) | |
115 | if slock == true then | |
116 | local remote = game.Workspace.Delete.delete | |
117 | remote:FireServer(xDDD) | |
118 | wait() | |
119 | warn("Someone tried to join:", xDDD.Name, "-SLOCKED") | |
120 | end | |
121 | end) | |
122 | ||
123 | plr.Chatted:Connect(function(xd) | |
124 | if string.sub(xd, 1) == (prefix.. "rworkspace") then | |
125 | local remote = game.Workspace.Delete.delete | |
126 | ||
127 | remote:FireServer(Workspace.Terrain.GameFolder) | |
128 | remote:FireServer(Workspace.Terrain.GameFolder) | |
129 | end | |
130 | end) | |
131 | ||
132 | plr.Chatted:Connect(function(msg) | |
133 | if string.sub(msg, 1, 5) == (prefix.."ban ") then | |
134 | for i,v in pairs(GetPlayer(string.sub(msg, 6))) do | |
135 | table.insert(banned,v.Name) | |
136 | local remote = game.Workspace.Delete.delete | |
137 | remote:FireServer(v) | |
138 | wait() | |
139 | print("Banned:", v.Name) | |
140 | end | |
141 | end | |
142 | end) | |
143 | ||
144 | game.Players.PlayerAdded:connect(function(x) | |
145 | wait(0.25) | |
146 | for i,v in pairs(banned) do | |
147 | if x.Name == v then | |
148 | local remote = game.Workspace.Delete.delete | |
149 | remote:FireServer(x) | |
150 | wait() | |
151 | warn("Someone tried to join:", x.Name, "-BANNED") | |
152 | end | |
153 | end | |
154 | end) | |
155 | ||
156 | plr.Chatted:Connect(function(rEE) | |
157 | if string.sub(rEE, 1, 12) == (prefix.."radminpads") then | |
158 | local remote = game.Workspace.Delete.delete | |
159 | remote:FireServer(game.Workspace.Terrain.GameFolder.Admin.Pads) | |
160 | end | |
161 | end) | |
162 | ||
163 | plr.Chatted:Connect(function(xAr) | |
164 | if string.sub(xAr, 1, 8) == (prefix.."rregen") then | |
165 | local remote = game.Workspace.Delete.delete | |
166 | remote:FireServer(game.Workspace.Terrain.GameFolder.Admin.Regen) | |
167 | end | |
168 | end) | |
169 | ||
170 | plr.Chatted:Connect(function(wE) | |
171 | if string.sub(wE, 1, 7) == (prefix.."robby") then | |
172 | local remote = game.Workspace.Delete.delete | |
173 | remote:FireServer(game.Workspace.Terrain.GameFolder.Workspace.Obby) | |
174 | end | |
175 | end) | |
176 | ||
177 | ||
178 | plr.Chatted:Connect(function(ssA) | |
179 | if string.sub(ssA, 1, 11) == (prefix.."banlist") then | |
180 | for i,v in pairs(banned) do | |
181 | warn("----------------") | |
182 | print(v) | |
183 | end | |
184 | end | |
185 | end) |