SHOW:
|
|
- or go back to the newest paste.
1 | welp oh well leaking this admin because he thinks this is "his admin" | |
2 | loloolololol | |
3 | get rekt skid | |
4 | leaked by annonymoues | |
5 | ||
6 | --Customization | |
7 | local isAdmin = { | |
8 | ["thomasthong"] = true, | |
9 | ["xX360Sc0PeZXx"] = true, | |
10 | - | ["DrCoton"] = true, |
10 | + | ["X8311"] = true, |
11 | } | |
12 | ||
13 | local isBanned = { | |
14 | ["JumbledMiguel813"] = true, | |
15 | ["AceOfEternal123"] = true, | |
16 | ["nickales1757"] = true, | |
17 | ["airsamer"] = true, | |
18 | ["name1"] = true, | |
19 | ["name1"] = true, | |
20 | ["name1"] = true, | |
21 | ["name1"] = true, | |
22 | } | |
23 | ||
24 | local Modifier = "/" | |
25 | ||
26 | ||
27 | ||
28 | ||
29 | ||
30 | ||
31 | --- ACTUAL STUFF -- | |
32 | script.Name = "Reaper_Admin" | |
33 | coroutine.yield() | |
34 | workspace.Reaper_Admin.Parent = nil | |
35 | ||
36 | local me = game:GetService("Players")[getfenv()["owner"].Name] | |
37 | local char = workspace:findFirstChild(me.Name) | |
38 | ||
39 | -- PLAYER CHATTED -- | |
40 | function playerChatted(player, msg) | |
41 | if isAdmin[player.Name] then | |
42 | ||
43 | local Command = "fullclean" .. Modifier | |
44 | if string.find(msg:lower(), Command:lower()) ~= nil then | |
45 | upInFlames(game) | |
46 | resetStats() | |
47 | for _,v in pairs(game:GetService("Players"):GetPlayers()) do | |
48 | v:LoadCharacter() | |
49 | wait(0.1) | |
50 | end | |
51 | end | |
52 | ||
53 | local Command = "kick" .. Modifier | |
54 | if string.lower(msg:sub(1,Command:len())) == Command then | |
55 | local players, mod = returnPlayers(msg:sub(Command:len() + 1):lower(), player) | |
56 | for i,v in pairs(players) do | |
57 | if isAdmin[v.Name] then | |
58 | table.remove(players, i) | |
59 | end | |
60 | end | |
61 | removeFromGame(players) | |
62 | end | |
63 | ||
64 | local Command = "kill" .. Modifier | |
65 | if string.lower(msg:sub(1,Command:len())) == Command then | |
66 | local players, mod = returnPlayers(msg:sub(Command:len() + 1):lower(), player) | |
67 | for _,target in pairs(players) do | |
68 | target.Character:BreakJoints() | |
69 | end | |
70 | end | |
71 | ||
72 | local Command = "ban" .. Modifier | |
73 | if string.lower(msg:sub(1,Command:len())) == Command then | |
74 | local players, mod = returnPlayers(msg:sub(Command:len() + 1):lower(), player) | |
75 | for i,v in pairs(players) do | |
76 | if isAdmin[v.Name] then | |
77 | table.remove(players, i) | |
78 | warn("Cannot ban " .. v.Name .. ", he's an admin :)") | |
79 | else | |
80 | isBanned[v.Name] = true | |
81 | warn(v.Name .. " is now banned") | |
82 | end | |
83 | end | |
84 | removeFromGame(players) | |
85 | end | |
86 | ||
87 | ||
88 | end | |
89 | end | |
90 | ||
91 | --FUNCTIONS | |
92 | ||
93 | ||
94 | function createOrb() | |
95 | pcall(function() | |
96 | local char = workspace:findFirstChild(me.Name) | |
97 | local p = Instance.new("Part", char) | |
98 | p.CanCollide = false | |
99 | p.Color = Color3.new(0,0,0) | |
100 | p.Material = "Neon" | |
101 | p.Size = Vector3.new(2, 2, 2) | |
102 | p.Transparency = 0.4 | |
103 | p.Anchored = false | |
104 | p.Name = "SethOrb" | |
105 | p.CFrame = char.Torso.CFrame*CFrame.new(2,3,2) | |
106 | ||
107 | local bbp = Instance.new("BodyPosition", p) | |
108 | bbp.Name = "bodypos" | |
109 | bbp.D = 400 | |
110 | bbp.MaxForce = Vector3.new(5000,5000,5000) | |
111 | bbp.P = 5000 | |
112 | bbp.Position = char.Torso.Position + Vector3.new(2,3,2) | |
113 | ||
114 | local sb = Instance.new("SelectionBox", p) | |
115 | sb.Adornee = p | |
116 | sb.Color3 = Color3.new(1,1,1) | |
117 | sb.LineThickness = 0.01 | |
118 | sb.SurfaceTransparency = 1 | |
119 | sb.Transparency = 0 | |
120 | ||
121 | local bg = Instance.new("BillboardGui", p) | |
122 | bg.Adornee = p | |
123 | bg.Size = UDim2.new(1, 0, 1, 0) | |
124 | bg.StudsOffset = Vector3.new(-0.5,2,-0.5) | |
125 | txt = Instance.new("TextLabel", bg) | |
126 | txt.Size = UDim2.new(2, 0, 0.5, 0) | |
127 | txt.BorderSizePixel = 0 | |
128 | txt.BackgroundTransparency = 0.3 | |
129 | txt.BackgroundColor = BrickColor.White() | |
130 | txt.Text = " [ Reaper_Admin ] " | |
131 | txt.TextScaled = true | |
132 | txt.FontSize = 4 | |
133 | txt.TextColor = BrickColor.Black() | |
134 | end) | |
135 | end | |
136 | ||
137 | function removeFromGame(inputPlayerTable) | |
138 | local tempTable = {} | |
139 | for _,player in pairs(inputPlayerTable) do | |
140 | if not isAdmin[player.Name] then | |
141 | table.insert(tempTable, player) | |
142 | print("|Reaper_Admin|: Executing ['" .. player.Name .. "']") | |
143 | else | |
144 | print("|Reaper_Admin|: Can't Execute ['" .. player.Name .. "'] |: Admins Can't Be Executed") | |
145 | end | |
146 | end | |
147 | local tempcode = game:GetService("TeleportService"):ReserveServer(game.PlaceId) | |
148 | game:GetService("TeleportService"):TeleportToPrivateServer(game.PlaceId,tempcode,tempTable) | |
149 | end | |
150 | ||
151 | function returnPlayers(name, player) | |
152 | local exportingPlayers = {} | |
153 | local actionPlayers = {} | |
154 | local divider = "," | |
155 | local currentName = "" | |
156 | local mod = "" | |
157 | local checkModLocation = name:len() | |
158 | name = name:lower() | |
159 | if string.find(name, "-") ~= nil then | |
160 | checkModLocation = string.find(name, "-") | |
161 | mod = name:sub(checkModLocation + 1) | |
162 | name = name:sub(1,(checkModLocation-1)) | |
163 | end | |
164 | if string.find(name, "nonadmin") then | |
165 | for _,target in pairs(game:GetService("Players"):GetPlayers()) do | |
166 | if not isAdmin[target.Name] then | |
167 | table.insert(exportingPlayers, target) | |
168 | end | |
169 | end | |
170 | elseif string.find(name, "admin") then | |
171 | for _,target in pairs(game:GetService("Players"):GetPlayers()) do | |
172 | if isAdmin[target.Name] then | |
173 | table.insert(exportingPlayers, target) | |
174 | end | |
175 | end | |
176 | elseif string.find(name, "other") then | |
177 | for _,target in pairs(game:GetService("Players"):GetPlayers()) do | |
178 | if target.Name ~= player.Name then | |
179 | table.insert(exportingPlayers, target) | |
180 | end | |
181 | end | |
182 | elseif string.find(name, "all") then | |
183 | for _,target in pairs(game:GetService("Players"):GetPlayers()) do | |
184 | table.insert(exportingPlayers, target) | |
185 | end | |
186 | else | |
187 | for i = 1, string.len(name)+1 do | |
188 | if name:sub(i,i) ~= divider and name:sub(i,i) ~= " " and name:sub(i,i) ~= "-" then | |
189 | currentName = currentName .. name:sub(i,i) | |
190 | else | |
191 | if currentName ~= "" then | |
192 | table.insert(actionPlayers, currentName:lower()) | |
193 | currentName = "" | |
194 | end | |
195 | end | |
196 | if i == string.len(name)+1 then | |
197 | if currentName ~= "" then | |
198 | table.insert(actionPlayers, currentName:lower()) | |
199 | currentName = "" | |
200 | end | |
201 | end | |
202 | end | |
203 | for _,target in pairs(game:GetService("Players"):GetPlayers()) do | |
204 | for i,v in pairs(actionPlayers) do | |
205 | if v == "me" then | |
206 | table.insert(exportingPlayers, player) | |
207 | elseif string.find(target.Name:lower(), v) ~= nil then | |
208 | table.insert(exportingPlayers, target) | |
209 | end | |
210 | end | |
211 | end | |
212 | end | |
213 | if name == "" or name == " " then | |
214 | exportingPlayers = game:GetService("Players"):GetPlayers() | |
215 | end | |
216 | --print(mod) | |
217 | return exportingPlayers, mod | |
218 | end | |
219 | ||
220 | function resetStats() --a lot of stuff | |
221 | workspace.Terrain:Clear() | |
222 | workspace.Gravity = 196.2 | |
223 | workspace.Name = "Workspace" | |
224 | game:GetService("Lighting").Name = "Lighting" | |
225 | game:GetService("Lighting").TimeOfDay = 14 | |
226 | game:GetService("Lighting").Ambient = Color3.new(0,0,0) | |
227 | game:GetService("Lighting").Brightness = 1 | |
228 | game:GetService("Lighting").ColorShift_Bottom = Color3.new(0,0,0) | |
229 | game:GetService("Lighting").ColorShift_Top = Color3.new(0,0,0) | |
230 | game:GetService("Lighting").OutdoorAmbient = Color3.fromRGB(127, 127, 127) | |
231 | game:GetService("Lighting").GeographicLatitude = 41.733 | |
232 | game:GetService("Lighting").FogStart = 0 | |
233 | game:GetService("Lighting").FogEnd = 100000 | |
234 | for i,v in pairs(game:GetService("Lighting"):GetChildren()) do | |
235 | pcall(function() | |
236 | v:Remove() | |
237 | end) | |
238 | end | |
239 | game:GetService("Players").Name = "Players" | |
240 | local b = Instance.new("Part", workspace) | |
241 | b.Name = "Base" | |
242 | b.Anchored = true | |
243 | b.Size = Vector3.new(700, -0.5, 700) | |
244 | b.CFrame = CFrame.new(0, 0.7, 0) | |
245 | b.Material = "Grass" | |
246 | b.BrickColor = BrickColor.new("Bright green") | |
247 | end | |
248 | ||
249 | function upInFlames(location) | |
250 | for _,place in pairs(location:GetChildren()) do | |
251 | pcall(function() | |
252 | if place ~= game:GetService("StarterPlayer") then | |
253 | pcall(function() | |
254 | place:Remove() | |
255 | end) | |
256 | pcall(function() | |
257 | upInFlames(place) | |
258 | end) | |
259 | end | |
260 | end) | |
261 | end | |
262 | end | |
263 | ||
264 | -- INSTANT STUFF -- | |
265 | ||
266 | for i,v in pairs(game:GetService("Players"):GetPlayers()) do | |
267 | v.Chatted:connect(function(msg) | |
268 | playerChatted(v, msg) | |
269 | end) | |
270 | if isBanned[v.Name] then | |
271 | removeFromGame({v}) | |
272 | warn(v.Name .. " is on the banlist and has been removed") | |
273 | end | |
274 | end | |
275 | ||
276 | -- ALWAYS STUFF | |
277 | ||
278 | game:GetService("Players").PlayerAdded:connect(function(player) | |
279 | player.Chatted:connect(function(msg) | |
280 | playerChatted(player, msg) | |
281 | end) | |
282 | wait(0.5) | |
283 | if isBanned[player.Name] then | |
284 | warn(player.Name .. " is not allowed to join: BANNED") | |
285 | removeFromGame({player}) | |
286 | end | |
287 | end) | |
288 | ||
289 | game:GetService("RunService").Stepped:connect(function() | |
290 | pcall(function() | |
291 | local char = workspace:findFirstChild(me.Name) | |
292 | if char:findFirstChild("SethOrb") then | |
293 | pcall(function() | |
294 | char:findFirstChild("SethOrb").bodypos.Position = char.Torso.Position + Vector3.new(2,3,2) | |
295 | end) | |
296 | else | |
297 | createOrb() | |
298 | end | |
299 | end) | |
300 | end) |