SHOW:
|
|
- or go back to the newest paste.
1 | - | adminlist = {"Grmsh","ehdfyhggg"}--Add in the names of the people you want to be able to use the command script here. |
1 | + | adminlist = {"TheOfficalNoob4788","ehdfyhggg"}--Add in the names of the people you want to be able to use the command script here. |
2 | bannedlist = {"Nobody is banned right now..."}--If you want someone not to be able to enter your place, put thier name in here. | |
3 | texture = ""--If you want someone wearing a certain t-shirt to be an admin, put the t-shirt's texture in here. | |
4 | disableBan = false --Set to 'true' if you don't want the "ban/" command to be able to be used by anyone. (Also disables 'kick/') | |
5 | disableAdmin = false --Set to 'true' if you don't want the "admin/" command to be able to be used by anyone. | |
6 | owner = "Grmsh" --Change this to your name | |
7 | ||
8 | --Commands if you dont know them o well-- | |
9 | namelist = { } | |
10 | variablelist = { } | |
11 | flist = { } | |
12 | local source = script:FindFirstChild("source") | |
13 | if source ~= nil then | |
14 | sbbu = source:clone() | |
15 | sbbu.Disabled = false | |
16 | else | |
17 | print("source doesnt exist, your command script may malfunction") | |
18 | end | |
19 | ||
20 | tools = Instance.new("Model") | |
21 | c = game.Lighting:GetChildren() | |
22 | for i=1,#c do | |
23 | if c[i].className == "Tool" then | |
24 | c[i]:clone().Parent = tools | |
25 | end | |
26 | if c[i].className == "HopperBin" then | |
27 | c[i]:clone().Parent = tools | |
28 | end end | |
29 | function NOMINATE10(person) | |
30 | if person.Name == owner then return true end | |
31 | return false | |
32 | end | |
33 | function findintable(name,tab) | |
34 | for i,v in pairs(tab) do | |
35 | if v == name then return i end | |
36 | end | |
37 | return false | |
38 | end | |
39 | function findplayer(name,speaker) | |
40 | if string.lower(name) == "all" then | |
41 | local chars = { } | |
42 | local c = game.Players:GetChildren() | |
43 | for i =1,#c do | |
44 | if c[i].className == "Player" then | |
45 | table.insert(chars,c[i]) | |
46 | end end | |
47 | return chars | |
48 | elseif string.sub(string.lower(name),1,9) == "nonadmins" then | |
49 | local nnum = 0 | |
50 | local chars = { } | |
51 | local c = game.Players:GetChildren() | |
52 | for i=1,#c do | |
53 | local isadmin = false | |
54 | for i2 =1,#namelist do | |
55 | if namelist[i2] == c[i].Name then | |
56 | isadmin = true | |
57 | end end | |
58 | if isadmin == false then | |
59 | nnum = nnum + 1 | |
60 | table.insert(chars,c[i]) | |
61 | end end | |
62 | if nnum == 0 then | |
63 | return 0 | |
64 | else | |
65 | return chars | |
66 | end | |
67 | elseif string.sub(string.lower(name),1,6) == "admins" then | |
68 | local anum = 0 | |
69 | local chars = { } | |
70 | local c = game.Players:GetChildren() | |
71 | for i=1,#c do | |
72 | for i2 =1,#namelist do | |
73 | if namelist[i2] == c[i].Name then | |
74 | anum = anum + 1 | |
75 | table.insert(chars,c[i]) | |
76 | end end end | |
77 | if anum == 0 then | |
78 | return 0 | |
79 | else | |
80 | return chars | |
81 | end | |
82 | elseif string.sub(string.lower(name),1,6) == "random" then | |
83 | while true do | |
84 | local c = game.Players:GetChildren() | |
85 | local r = math.random(1,#c) | |
86 | if c[r].className == "Player" then | |
87 | return { c[r] } | |
88 | end end | |
89 | elseif string.sub(string.lower(name),1,6) == "guests" then | |
90 | local gnum = 0 | |
91 | local chars = { } | |
92 | local c = game.Players:GetChildren() | |
93 | for i=1,#c do | |
94 | if string.sub(c[i].Name,1,5) == "Guest" then | |
95 | gnum = gnum + 1 | |
96 | table.insert(chars,c[i]) | |
97 | end end | |
98 | if gnum == 0 then | |
99 | return 0 | |
100 | else | |
101 | return chars | |
102 | end | |
103 | elseif string.sub(string.lower(name),1,5) == "team " then | |
104 | local theteam = nil | |
105 | local tnum = 0 | |
106 | if game.Teams ~= nil then | |
107 | local c = game.Teams:GetChildren() | |
108 | for i =1,#c do | |
109 | if c[i].className == "Team" then | |
110 | if string.find(string.lower(c[i].Name),string.sub(string.lower(name),6)) == 1 then | |
111 | theteam = c[i] | |
112 | tnum = tnum + 1 | |
113 | end end end | |
114 | if tnum == 1 then | |
115 | local chars = { } | |
116 | local c = game.Players:GetChildren() | |
117 | for i =1,#c do | |
118 | if c[i].className == "Player" then | |
119 | if c[i].TeamColor == theteam.TeamColor then | |
120 | table.insert(chars,c[i]) | |
121 | end end end | |
122 | return chars | |
123 | end end | |
124 | return 0 | |
125 | elseif string.lower(name) == "me" then | |
126 | local person299 = { speaker } | |
127 | return person299 | |
128 | elseif string.lower(name) == "others" then | |
129 | local chars = { } | |
130 | local c = game.Players:GetChildren() | |
131 | for i =1,#c do | |
132 | if c[i].className == "Player" then | |
133 | if c[i] ~= speaker then | |
134 | table.insert(chars,c[i]) | |
135 | end end end | |
136 | return chars | |
137 | else | |
138 | local chars = { } | |
139 | local commalist = { } | |
140 | local ssn = 0 | |
141 | local lownum = 1 | |
142 | local highestnum = 1 | |
143 | local foundone = false | |
144 | while true do | |
145 | ssn = ssn + 1 | |
146 | if string.sub(name,ssn,ssn) == "" then | |
147 | table.insert(commalist,lownum) | |
148 | table.insert(commalist,ssn - 1) | |
149 | highestnum = ssn - 1 | |
150 | break | |
151 | end | |
152 | if string.sub(name,ssn,ssn) == "," then | |
153 | foundone = true | |
154 | table.insert(commalist,lownum) | |
155 | table.insert(commalist,ssn) | |
156 | lownum = ssn + 1 | |
157 | end end | |
158 | if foundone == true then | |
159 | for ack=1,#commalist,2 do | |
160 | local cnum = 0 | |
161 | local char = nil | |
162 | local c = game.Players:GetChildren() | |
163 | for i =1,#c do | |
164 | if c[i].className == "Player" then | |
165 | if string.find(string.lower(c[i].Name),string.sub(string.lower(name),commalist[ack],commalist[ack + 1] - 1)) == 1 then | |
166 | char = c[i] | |
167 | cnum = cnum + 1 | |
168 | end end end | |
169 | if cnum == 1 then | |
170 | table.insert(chars,char) | |
171 | end end | |
172 | if #chars ~= 0 then | |
173 | return chars | |
174 | else | |
175 | return 0 | |
176 | end | |
177 | else | |
178 | local cnum = 0 | |
179 | local char = nil | |
180 | local c = game.Players:GetChildren() | |
181 | for i =1,#c do | |
182 | if c[i].className == "Player" then | |
183 | if string.find(string.lower(c[i].Name),string.lower(name)) == 1 then | |
184 | char = {c[i]} | |
185 | cnum = cnum + 1 | |
186 | end end end | |
187 | if cnum == 1 then | |
188 | return char | |
189 | elseif cnum == 0 then | |
190 | text("That name is not found.",1,"Message",speaker) | |
191 | return 0 | |
192 | elseif cnum > 1 then | |
193 | text("That name is ambiguous.",1,"Message",speaker) | |
194 | return 0 | |
195 | end end end end -- I really like the way the ends look when they're all on the same line better, dont you? | |
196 | function findteam(name,speak) | |
197 | teams = {} | |
198 | if name then | |
199 | for i,v in pairs(game:GetService("Teams"):GetChildren()) do | |
200 | if v.Name:sub(1,name:len()):lower() == name:lower() then | |
201 | table.insert(teams,v) | |
202 | end | |
203 | end | |
204 | if #teams == 0 then | |
205 | text("that team is not found.",1,"Message",speak) | |
206 | return false | |
207 | end | |
208 | if teams > 1 then | |
209 | text("That team is ambiguous.",1,"Message",speaker) | |
210 | return false | |
211 | end | |
212 | return teams[1] | |
213 | end end | |
214 | function createscript(source,par) | |
215 | local a = sbbu:clone() | |
216 | local context = Instance.new("StringValue") | |
217 | context.Name = "Context" | |
218 | context.Value = source | |
219 | context.Parent = a | |
220 | while context.Value ~= source do wait() end | |
221 | a.Parent = par | |
222 | local b = Instance.new("IntValue") | |
223 | b.Name = "Is A Created Script" | |
224 | b.Parent = a | |
225 | end | |
226 | function localscript(source,par) | |
227 | local a = script.localsource:clone() | |
228 | local context = Instance.new("StringValue") | |
229 | context.Name = "Context" | |
230 | context.Value = source | |
231 | context.Parent = a | |
232 | while context.Value ~= source do wait() end | |
233 | a.Parent = par | |
234 | local b = Instance.new("IntValue") | |
235 | b.Name = "Is A Created Script" | |
236 | b.Parent = a | |
237 | end | |
238 | ||
239 | function text(message,duration,type,object) | |
240 | local m = Instance.new(type) | |
241 | m.Text = message | |
242 | m.Parent = object | |
243 | wait(duration) | |
244 | if m.Parent ~= nil then | |
245 | m:remove() | |
246 | end end | |
247 | function foc(msg,speaker) | |
248 | if string.lower(msg) == "fix" then | |
249 | for i =1,#namelist do | |
250 | if namelist[i] == speaker.Name then | |
251 | variablelist[i]:disconnect() | |
252 | table.remove(variablelist,i) | |
253 | table.remove(namelist,i) | |
254 | table.remove(flist,i) | |
255 | end end | |
256 | local tfv = speaker.Chatted:connect(function(msg) oc(msg,speaker) end) | |
257 | table.insert(namelist,speaker.Name) | |
258 | table.insert(variablelist,tfv) | |
259 | local tfv = speaker.Chatted:connect(function(msg) foc(msg,speaker) end) | |
260 | table.insert(flist,tfv) | |
261 | end end | |
262 | function PERSON299(name) | |
263 | for i =1,#adminlist do | |
264 | if adminlist[i] == name then | |
265 | return true | |
266 | end end | |
267 | return false | |
268 | end | |
269 | function oc(msg,speaker) | |
270 | if string.sub(string.lower(msg),1,5) == "kill/" then--This part checks if the first part of the message is kill/ | |
271 | local player = findplayer(string.sub(msg,6),speaker)--This part refers to the findplayer function for a list of people associated with the input after kill/ | |
272 | if player ~= 0 then--This part makes sure that the findplayer function found someone, as it returns 0 when it hasnt | |
273 | for i = 1,#player do--This part makes a loop, each different loop going through each player findplayer returned | |
274 | if player[i].Character ~= nil then--This part makes sure that the loop's current player's character exists | |
275 | local human = player[i].Character:FindFirstChild("Humanoid")--This part looks for the Humanoid in the character | |
276 | if human ~= nil then--This part makes sure the line above found a humanoid | |
277 | human.Health = 0--This part makes the humanoid's health 0 | |
278 | end end end end end--This line contains the ends for all the if statements and the for loop | |
279 | if string.sub(string.lower(msg),1,2) == "m/" then | |
280 | text(speaker.Name .. ": " .. string.sub(msg,3),2,"Message",game.Workspace) | |
281 | end | |
282 | if string.sub(string.lower(msg),1,2) == "h/" then | |
283 | text(speaker.Name .. ": " .. string.sub(msg,3),2,"Hint",game.Workspace) | |
284 | end | |
285 | if string.sub(string.lower(msg),1,2) == "c/" then--Dontcha wish pcall was more reliable? | |
286 | createscript(string.sub(msg,3),game.Workspace) | |
287 | end | |
288 | local upmsg = msg | |
289 | local msg = string.lower(msg) | |
290 | ||
291 | if msg:sub(1,8) == "rickroll/" then | |
292 | local player = findplayer(msg:sub(9),speaker) | |
293 | if player ~= 0 then | |
294 | findrr = player:FindFirstChild("RickRoll") | |
295 | if not findrr then | |
296 | sound = Instance.new("Sound") | |
297 | sound.Parent = player | |
298 | sound.Volume = 1 -- Thats it turn the volume up... | |
299 | sound.Pitch = 0.97 -- Just make it MORE annoying | |
300 | sound.Looped = true -- LOL! THATS GONNA KILL THEM XD | |
301 | sound.Name = "RickRoll" | |
302 | sound:Play() | |
303 | anim = player.Character.Humanoid:LoadAnimation(script.Dance) | |
304 | anim:Play() | |
305 | wait(64) | |
306 | anim:Stop() | |
307 | end end end | |
308 | if msg:sub(1,10) == "unrickroll/" then | |
309 | local player = findplayer(msg:sub(11),speaker) | |
310 | if player ~= 0 then | |
311 | music = player:FindFirstChild("RickRoll") | |
312 | if music then | |
313 | music.Parent = nil | |
314 | end end end | |
315 | if msg:sub(1,6) == "music/" then | |
316 | local musicpart = Instance.new("Part") | |
317 | musicpart.Anchored = true | |
318 | musicpart.Locked = true | |
319 | musicpart.Transparncy = 1 | |
320 | musicpart.Position = Vector3.new(10, 2, 10) -- about the centre of the map | |
321 | local music = Instance.new("Sound") | |
322 | music.SoundId = msg:sub(7) | |
323 | music.Volume = 1 | |
324 | music.Pitch = 1 | |
325 | music.Looped = false | |
326 | music.PlayOnRemove = false | |
327 | music.Name = "eltobyio151selSoundio" | |
328 | music.Parent = musicpart | |
329 | musicpart.Parent = game.Workspace | |
330 | music:Play() | |
331 | end | |
332 | ||
333 | if msg:sub(1,5) == "fire/" then | |
334 | local player = findplayer(msg:sub(6),speaker) | |
335 | if player ~= 0 then | |
336 | for i = 1,#player do | |
337 | if player[i].Character then | |
338 | if player[i].Character.Torso:FindFirstChild("Fire") == nil then | |
339 | fire = Instance.new("Fire") | |
340 | fire.Parent = player[i].Character.Torso | |
341 | fire.Color = Color3.new(math.random(),math.random(),math.random()) | |
342 | end end end end end | |
343 | ||
344 | if msg:sub(1,7) == "unfire/" then | |
345 | local player = findplayer(msg:sub(8),speaker) | |
346 | if player ~= 0 then | |
347 | for i = 1,#player do | |
348 | if player[i].Character and player[i].Character.Torso then | |
349 | local c = player[i].Character.Torso:GetChildren() | |
350 | for i2 = 1, #c do | |
351 | if c[i2]:isA("Fire") then | |
352 | c[i2]:remove() | |
353 | end end end end end end | |
354 | if msg:sub(1,6) == "smoke/" then | |
355 | local player = findplayer(msg:sub(7),speaker) | |
356 | if player ~= 0 then | |
357 | for i = 1,#player do | |
358 | if player[i].Character and player[i].Character.Torso then | |
359 | if player[i].Character.Torso:FindFirstChild("Smoke") == nil then | |
360 | smoke = Instance.new("Smoke") | |
361 | smoke.Parent = player[i].Character.Torso | |
362 | smoke.Color = Color3.new(math.random(),math.random(),math.random()) --I wonder if I could've done something like 'Color3.Random()' | |
363 | end end end end end | |
364 | if msg:sub(1,8) == "unsmoke/" then | |
365 | local player = findplayer(msg:sub(9),speaker) | |
366 | if player ~= 0 then | |
367 | for i = 1,#player do | |
368 | if player[i].Character and player[i].Character.Torso then | |
369 | local c = player[i].Character.Torso:GetChildren() | |
370 | for i2 = 1, #c do | |
371 | if c[i2]:isA("Smoke") then | |
372 | c[i2]:remove() | |
373 | end end end end end end | |
374 | if msg:sub(1,6) == "color/" then | |
375 | local slash = msg:sub(7):find("/")+6 | |
376 | if slash then | |
377 | local player = findplayer(msg:sub(7, slash-1),speaker) | |
378 | color = msg:sub(slash+1) | |
379 | color = color:upper(color:sub(1,1)) .. color:sub(2) | |
380 | if player ~= 0 and color then | |
381 | for i = 1,#player do | |
382 | if player[i].Character then | |
383 | thecolor = BrickColor.new(color) | |
384 | if thecolor ~= nil then | |
385 | if player[i].Character.Shirt ~= nil then | |
386 | player[i].Character.Shirt:remove() | |
387 | end | |
388 | if player[i].Character.Pants then | |
389 | player[i].Character.Pants:remove() | |
390 | end | |
391 | c = player[i].Character:GetChildren() | |
392 | for i2 = 1,#c do | |
393 | if c[i2]:isA("Part") then | |
394 | c[i2].BrickColor = thecolor | |
395 | end end end end end end end end | |
396 | if msg:sub(1,15) == "advancedbtools/" then | |
397 | local player = findplayer(msg:sub(16),speaker) | |
398 | if player ~= 0 then | |
399 | local insert = game:GetService("InsertService") | |
400 | for i = 1,#player do | |
401 | local paintbrush = insert:LoadAsset(34842883) | |
402 | paintbrush:MakeJoints() | |
403 | paintbrush.Paintbrush.Parent = player[i].Backpack --Give the tool to the player. | |
404 | paintbrush:remove() --Remove the model that held the tool. | |
405 | local material = insert:LoadAsset(34842844) | |
406 | material:MakeJoints() | |
407 | material.Material.Parent = player[i].Backpack | |
408 | material:remove() | |
409 | local resize = insert:LoadAsset(34842919) | |
410 | resize:MakeJoints() | |
411 | resize["Resize Tool"].Parent = player[i].Backpack | |
412 | resize:remove() | |
413 | local delete = Instance.new("HopperBin") | |
414 | delete.BinType = "Hammer" | |
415 | delete.Parent = player[i].Backpack | |
416 | local grab = Instance.new("HopperBin") | |
417 | grab.BinType = "GameTool" | |
418 | grab.Parent = player[i].Backpack | |
419 | local copy = Instance.new("HopperBin") | |
420 | copy.BinType = "Clone" | |
421 | copy.Parent = player[i].Backpack | |
422 | local extra = insert:LoadAsset(35012404) | |
423 | extra:MakeJoints() | |
424 | extra["Build Tools"].Parent = player[i].Backpack | |
425 | end end | |
426 | elseif msg:sub(1,4) == "abt/" then | |
427 | local player = findplayer(msg:sub(5),speaker) | |
428 | if player ~= 0 then | |
429 | local insert = game:GetService("InsertService") | |
430 | for i = 1,#player do | |
431 | local paintbrush = insert:LoadAsset(34842883) | |
432 | paintbrush:MakeJoints() | |
433 | paintbrush.Paintbrush.Parent = player[i].Backpack --Give the tool to the player. | |
434 | paintbrush:remove() --Remove the model that held the tool. | |
435 | local material = insert:LoadAsset(34842844) | |
436 | material:MakeJoints() | |
437 | material.Material.Parent = player[i].Backpack | |
438 | material:remove() | |
439 | local resize = insert:LoadAsset(34842919) | |
440 | resize:MakeJoints() | |
441 | resize["Resize Tool"].Parent = player[i].Backpack | |
442 | resize:remove() | |
443 | local delete = Instance.new("HopperBin") | |
444 | delete.BinType = "Hammer" | |
445 | delete.Parent = player[i].Backpack | |
446 | local grab = Instance.new("HopperBin") | |
447 | grab.BinType = "GameTool" | |
448 | grab.Parent = player[i].Backpack | |
449 | local copy = Instance.new("HopperBin") | |
450 | copy.BinType = "Clone" | |
451 | copy.Parent = player[i].Backpack | |
452 | local extra = insert:LoadAsset(35012404) | |
453 | extra:MakeJoints() | |
454 | extra["Build Tools"].Parent = player[i].Backpack | |
455 | end end end | |
456 | if msg:sub(1,7) == "insert/" then | |
457 | local player = findplayer(msg:sub(8),speaker) | |
458 | if player ~= 0 then | |
459 | for i = 1,#player do | |
460 | local insert = game:GetService("InsertService"):LoadAsset(34842829) | |
461 | insert:MakeJoints() | |
462 | insert["Insert"].Parent = player[i].Backpack | |
463 | insert:remove() | |
464 | end end end | |
465 | if msg:sub(1,9) == "noinsert/" then | |
466 | local player = findplayer(msg:sub(10),speaker) | |
467 | if player ~= 0 then | |
468 | for i = 1,#player do | |
469 | local insert = player[i].Backpack:FindFirstChild("Insert") | |
470 | if insert then | |
471 | insert:remove() | |
472 | end | |
473 | local bpinsert = player[i].Character:FindFirstChild("Insert") | |
474 | if bpinsert ~= nil and bpinsert:isA("Tool") then | |
475 | bpinsert:remove() | |
476 | end | |
477 | end end end | |
478 | if msg:sub(1,13) == "resetambient/" then | |
479 | game.Lighting.Ambient = Color3.new(1,1,1) | |
480 | end | |
481 | if msg:sub(1,14) == "randomambient/" then | |
482 | game.Lighting.Ambient = Color3.new(math.random(1,255),math.random(1,255),math.random(1,255)) | |
483 | end | |
484 | if msg:sub(1,11) == "getambient/" then | |
485 | m = Instance.new("Message",speaker) | |
486 | m.Text = tostring(game.Lighting.Ambient) | |
487 | wait(3) | |
488 | m:remove() | |
489 | end | |
490 | if msg:sub(1,14) == "platformstand/" then | |
491 | local player = findplayer(msg:sub(15),speaker) | |
492 | if player ~= 0 then | |
493 | for i = 1,#player do | |
494 | if player[i].Character then | |
495 | player[i].Character.Humanoid.PlatformStand = true | |
496 | end end end end | |
497 | if msg:sub(1,16) == "unplatformstand/" then | |
498 | local player = findplayer(msg:sub(17),speaker) | |
499 | if player ~= 0 then | |
500 | for i = 1,#player do | |
501 | if player[i].Character then | |
502 | player[i].Character.Humanoid.PlatformStand = false | |
503 | end end end end | |
504 | if msg:sub(1,8) == "cframe1/" then | |
505 | local player = findplayer(msg:sub(9),speaker) | |
506 | if player ~= 0 then | |
507 | for i = 1,#player do | |
508 | local cframe = game:GetService("InsertService"):LoadAsset(34879005) | |
509 | cframe:MakeJoints() | |
510 | cframe["All New Edit Cframe"].Parent = player[i].Backpack | |
511 | cframe:remove() | |
512 | end end end | |
513 | if msg:sub(1,8) == "cframe2/" then | |
514 | local player = findplayer(msg:sub(9),speaker) | |
515 | if player ~= 0 then | |
516 | for i = 1,#player do | |
517 | local cframe = game:GetService("InsertService"):LoadAsset(35145017) | |
518 | cframe:MakeJoints() | |
519 | cframe["CFrame"].Parent = player[i].Backpack | |
520 | cframe:remove() | |
521 | end end end | |
522 | if msg:sub(1,11) == "skateboard/" then | |
523 | local player = findplayer(msg:sub(12),speaker) | |
524 | if player ~= 0 then | |
525 | for i = 1,#player do | |
526 | local board = game:GetService("InsertService"):LoadAsset(34879053) | |
527 | board:MakeJoints() | |
528 | board["SkateTool"].Parent = player[i].Backpack | |
529 | board:remove() | |
530 | end end end | |
531 | if msg:sub(1,11) == "appearance/" then | |
532 | local slash = msg:sub(12):find("/")+11 | |
533 | if slash then | |
534 | local player = findplayer(msg:sub(12,slash-1),speaker) | |
535 | if player ~= 0 then | |
536 | local id = msg:sub(slash+1) | |
537 | if id then | |
538 | for i = 1,#player do | |
539 | player[i].CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=".. id .."&placeId=0" | |
540 | player[i].Character.Humanoid.Health = 0 | |
541 | end end end end end | |
542 | if string.sub(msg,1,6) == "wedge/" then | |
543 | local danumber1 = nil | |
544 | local danumber2 = nil | |
545 | for i = 7,100 do | |
546 | if string.sub(msg,i,i) == "/" then | |
547 | danumber1 = i | |
548 | break | |
549 | elseif string.sub(msg,i,i) == "" then | |
550 | break | |
551 | end end | |
552 | if danumber1 == nil then return end | |
553 | for i =danumber1 + 1,danumber1 + 100 do | |
554 | if string.sub(msg,i,i) == "/" then | |
555 | danumber2 = i | |
556 | break | |
557 | elseif string.sub(msg,i,i) == "" then | |
558 | break | |
559 | end end | |
560 | if danumber2 == nil then return end | |
561 | if speaker.Character ~= nil then | |
562 | local head = speaker.Character:FindFirstChild("Head") | |
563 | if head ~= nil then | |
564 | local part = Instance.new("WedgePart") | |
565 | part.Size = Vector3.new(string.sub(msg,7,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1)) | |
566 | part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0) | |
567 | part.Name = "Person299's Admin Command Script V2 Part thingy" | |
568 | part.Parent = game.Workspace | |
569 | end end end | |
570 | if string.sub(msg,1,9) == "cylinder/" then | |
571 | local danumber1 = nil | |
572 | local danumber2 = nil | |
573 | for i = 10,100 do | |
574 | if string.sub(msg,i,i) == "/" then | |
575 | danumber1 = i | |
576 | break | |
577 | elseif string.sub(msg,i,i) == "" then | |
578 | break | |
579 | end end | |
580 | if danumber1 == nil then return end | |
581 | for i =danumber1 + 1,danumber1 + 100 do | |
582 | if string.sub(msg,i,i) == "/" then | |
583 | danumber2 = i | |
584 | break | |
585 | elseif string.sub(msg,i,i) == "" then | |
586 | break | |
587 | end end | |
588 | if danumber2 == nil then return end | |
589 | if speaker.Character ~= nil then | |
590 | local head = speaker.Character:FindFirstChild("Head") | |
591 | if head ~= nil then | |
592 | local part = Instance.new("Part") | |
593 | part.Size = Vector3.new(string.sub(msg,10,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1)) | |
594 | part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0) | |
595 | part.Name = "Person299's Admin Command Script V2 Part thingy" | |
596 | local cyl = Instance.new("CylinderMesh",part) | |
597 | part.Parent = game.Workspace | |
598 | end end end | |
599 | if string.sub(msg,1,6) == "block/" then | |
600 | local danumber1 = nil | |
601 | local danumber2 = nil | |
602 | for i = 7,100 do | |
603 | if string.sub(msg,i,i) == "/" then | |
604 | danumber1 = i | |
605 | break | |
606 | elseif string.sub(msg,i,i) == "" then | |
607 | break | |
608 | end end | |
609 | if danumber1 == nil then return end | |
610 | for i =danumber1 + 1,danumber1 + 100 do | |
611 | if string.sub(msg,i,i) == "/" then | |
612 | danumber2 = i | |
613 | break | |
614 | elseif string.sub(msg,i,i) == "" then | |
615 | break | |
616 | end end | |
617 | if danumber2 == nil then return end | |
618 | if speaker.Character ~= nil then | |
619 | local head = speaker.Character:FindFirstChild("Head") | |
620 | if head ~= nil then | |
621 | local part = Instance.new("Part") | |
622 | part.Size = Vector3.new(string.sub(msg,7,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1)) | |
623 | part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0) | |
624 | part.Name = "Person299's Admin Command Script V2 Part thingy" | |
625 | local block = Instance.new("BlockMesh",part) | |
626 | part.Parent = game.Workspace | |
627 | end end end | |
628 | if string.sub(msg,1,6) == "plate/" then | |
629 | local danumber1 = nil | |
630 | local danumber2 = nil | |
631 | for i = 7,100 do | |
632 | if string.sub(msg,i,i) == "/" then | |
633 | danumber1 = i | |
634 | break | |
635 | elseif string.sub(msg,i,i) == "" then | |
636 | break | |
637 | end end | |
638 | if danumber1 == nil then return end | |
639 | for i =danumber1 + 1,danumber1 + 100 do | |
640 | if string.sub(msg,i,i) == "/" then | |
641 | danumber2 = i | |
642 | break | |
643 | elseif string.sub(msg,i,i) == "" then | |
644 | break | |
645 | end end | |
646 | if danumber2 == nil then return end | |
647 | if speaker.Character ~= nil then | |
648 | local head = speaker.Character:FindFirstChild("Head") | |
649 | if head ~= nil then | |
650 | local part = Instance.new("Part") | |
651 | part.Size = Vector3.new(string.sub(msg,7,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1)) | |
652 | part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0) | |
653 | part.Name = "Person299's Admin Command Script V2 Part thingy" | |
654 | part.formFactor = "Plate" | |
655 | part.Parent = game.Workspace | |
656 | end end end | |
657 | if string.sub(msg,1,7) == "sphere/" then | |
658 | local danumber1 = nil | |
659 | local danumber2 = nil | |
660 | for i = 8,100 do | |
661 | if string.sub(msg,i,i) == "/" then | |
662 | danumber1 = i | |
663 | break | |
664 | elseif string.sub(msg,i,i) == "" then | |
665 | break | |
666 | end end | |
667 | if danumber1 == nil then return end | |
668 | for i =danumber1 + 1,danumber1 + 100 do | |
669 | if string.sub(msg,i,i) == "/" then | |
670 | danumber2 = i | |
671 | break | |
672 | elseif string.sub(msg,i,i) == "" then | |
673 | break | |
674 | end end | |
675 | if danumber2 == nil then return end | |
676 | if speaker.Character ~= nil then | |
677 | local head = speaker.Character:FindFirstChild("Head") | |
678 | if head ~= nil then | |
679 | local part = Instance.new("Part") | |
680 | part.Size = Vector3.new(string.sub(msg,8,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1)) | |
681 | part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0) | |
682 | part.Name = "Person299's Admin Command Script V2 Part thingy" | |
683 | part.Shape = "Ball" | |
684 | part.formFactor = 1 | |
685 | part.Parent = game.Workspace | |
686 | end end end | |
687 | if msg:sub(1,5) == "burn/" then | |
688 | local player = findplayer(msg:sub(6),speaker) | |
689 | if player ~= 0 then | |
690 | for i = 1,#player do | |
691 | createscript([[ | |
692 | if script.Parent.Parent then | |
693 | fire = Instance.new("Fire") | |
694 | fire.Parent = script.Parent | |
695 | fire.Name = "Burn" | |
696 | fire.Color = BrickColor.Random().Color | |
697 | while fire do | |
698 | script.Parent.Parent.Humanoid:TakeDamage(1) | |
699 | wait(.1) | |
700 | end | |
701 | end]], player[i].Character.Torso) | |
702 | end end end | |
703 | if msg:sub(1,9) == "de-admin/" then | |
704 | local player = findplayer(msg:sub(10),speaker) | |
705 | if player ~= 0 and NOMINATE10(speaker) then | |
706 | for i = 1,#player do | |
707 | if player[i].Name ~= speaker.Name then | |
708 | if PERSON299(player[i].Name) then | |
709 | ishethere = findintable(player[i].Name,adminlist) | |
710 | if ishethere then | |
711 | table.remove(adminlist,ishethere) | |
712 | end | |
713 | local ishe = findintable(player[i].Name,namelist) | |
714 | if ishe then | |
715 | table.remove(namelist,ishe) | |
716 | end | |
717 | local isf = findintable(player[i].Name,flist) | |
718 | if isf then | |
719 | table.remove(flist,isf) | |
720 | end end end end | |
721 | foc("fix",speaker) | |
722 | end end | |
723 | if msg:sub(1,6) == "watch/" then | |
724 | local player = findplayer(msg:sub(7),speaker) | |
725 | if player ~= 0 then | |
726 | if #player == 1 then | |
727 | for i = 1,#player do | |
728 | sc = script.CamScript:clone() | |
729 | sc.Parent = speaker | |
730 | sc["New Subject"].Value = player[i].Character.Head | |
731 | sc.Disabled = false | |
732 | end end end end | |
733 | if msg:sub(1,11) == "removegear/" then | |
734 | local player = findplayer(msg:sub(12),speaker) | |
735 | if player ~= 0 then | |
736 | for i = 1,#player do | |
737 | if player[i].StarterGear then | |
738 | local gear = player[i].StarterGear:GetChildren() | |
739 | if #gear > 0 then | |
740 | for Num,Gear in pairs(gear) do | |
741 | Gear:remove() | |
742 | end end end end end end | |
743 | if msg:sub(1,10) == "savetools/" then | |
744 | local player = findplayer(msg:sub(11),speaker) | |
745 | if player ~= 0 then | |
746 | for i = 1,#player do | |
747 | if player[i].StarterGear and player[i].Backpack then | |
748 | if #player[i].Backpack:GetChildren() > 0 then | |
749 | for num,tool in pairs(player[i].Backpack:GetChildren()) do | |
750 | tool:clone().Parent = player[i].StarterGear | |
751 | end end end end end end | |
752 | if msg:sub(1,12) == "localscript/" then | |
753 | if msg:sub(13) then | |
754 | local slash = msg:sub(13):find("/")+12 | |
755 | if slash then | |
756 | local sourcE = msg:sub(slash+1) | |
757 | if sourcE then | |
758 | local player = findplayer(msg:sub(13,slash-1),speaker) | |
759 | if player ~= 0 then | |
760 | for i = 1,#player do | |
761 | localscript(sourcE,player[i]) | |
762 | end end end end end end | |
763 | if msg:sub(1,8) == "getgear/" then | |
764 | local player = findplayer(msg:sub(9),speaker) | |
765 | if player ~= 0 then | |
766 | for i = 1,#player do | |
767 | if player[i].StarterGear and speaker.Backpack then | |
768 | for i,v in pairs(player[i].StarterGear:GetChildren()) do | |
769 | v:clone().Parent = speaker.Backpack | |
770 | end end end end end | |
771 | if msg:sub(1,5) == "team/" then | |
772 | local slash = msg:sub(6):find("/")+5 | |
773 | if slash then | |
774 | local team = upmsg:sub(6,slash-1) | |
775 | if team then | |
776 | local color = upmsg:sub(slash+1) | |
777 | local bcolor = BrickColor.new(color) | |
778 | if bcolor == BrickColor.new("Medium stone grey") and color:lower() ~= "medium stone grey" then return end | |
779 | Team = Instance.new("Team",game:GetService("Teams")) | |
780 | Team.Name = team | |
781 | Team.TeamColor = bcolor | |
782 | end end end | |
783 | if msg:sub(1,11) == "changeteam/" then | |
784 | local slash = msg:sub(12):find("/")+11 | |
785 | if slash then | |
786 | local player = findplayer(msg:sub(12,slash-1),speaker) | |
787 | if player ~= 0 then | |
788 | local team = findteam(msg:sub(slash+1),speaker) | |
789 | if team then | |
790 | for i = 1,#player do | |
791 | player[i].Neutral = false | |
792 | player[i].TeamColor = team.TeamColor | |
793 | end end end end end | |
794 | if msg == "setupteams/" then | |
795 | local Teams = game:GetService("Teams") | |
796 | TeamChild = Teams:GetChildren() | |
797 | if #TeamChild > 0 then | |
798 | for i,v in pairs(TeamChild) do | |
799 | v:remove() | |
800 | end | |
801 | end | |
802 | local Unassinged = Instance.new("Team",Teams) | |
803 | Unassigned.TeamColor = BrickColor.new("Really black") | |
804 | Unassigned.Name = "Unassigned" | |
805 | for i,v in pairs(game.Players:GetPlayers()) do | |
806 | v.Neutral = false | |
807 | v.TeamColor = BrickColor.new("Really black") | |
808 | end | |
809 | end | |
810 | if msg:sub(1,11) == "removeteam/" then | |
811 | local Teams = game:GetService("Teams") | |
812 | assignTeam = {} | |
813 | local team = findteam(msg:sub(12),speaker) | |
814 | if team then | |
815 | for i,v in pairs(game.Players:GetPlayers()) do | |
816 | if v.TeamColor == team.TeamColor then | |
817 | table.insert(assignTeam,v) | |
818 | end | |
819 | end | |
820 | team:remove() | |
821 | if #assignTeam > 0 then | |
822 | if not Teams:FindFirstChild("Unassigned") then | |
823 | Unassinged = Instance.new("Team",Teams) | |
824 | Unassigned.TeamColor = BrickColor.new("Really black") | |
825 | Unassigned.Name = "Unassigned" | |
826 | else Unassigned = Teams.Unassigned end | |
827 | for i,v in pairs(assignTeam) do | |
828 | v.TeamColor = Unassigned.TeamColor | |
829 | end end end end | |
830 | if string.sub(msg,1,5) == "give/" then | |
831 | local danumber1 = nil | |
832 | for i = 6,100 do | |
833 | if string.sub(msg,i,i) == "/" then | |
834 | danumber1 = i | |
835 | break | |
836 | elseif string.sub(msg,i,i) == "" then | |
837 | break | |
838 | end end | |
839 | if danumber1 == nil then return end | |
840 | local it = nil | |
841 | local all = true | |
842 | if string.sub(string.lower(msg),danumber1 + 1,danumber1 + 4) ~= "all" then | |
843 | all = false | |
844 | local itnum = 0 | |
845 | local c = tools:GetChildren() | |
846 | for i2 = 1,#c do | |
847 | if string.find(string.lower(c[i2].Name),string.sub(string.lower(msg),danumber1 + 1)) == 1 then | |
848 | it = c[i2] | |
849 | itnum = itnum + 1 | |
850 | end end | |
851 | if itnum ~= 1 then return end | |
852 | else | |
853 | all = true | |
854 | end | |
855 | local player = findplayer(string.sub(msg,6,danumber1 - 1),speaker) | |
856 | if player ~= 0 then | |
857 | for i = 1,#player do | |
858 | local bp = player[i]:FindFirstChild("Backpack") | |
859 | if bp ~= nil then | |
860 | if all == false then | |
861 | it:clone().Parent = bp | |
862 | else | |
863 | local c = tools:GetChildren() | |
864 | for i2 = 1,#c do | |
865 | c[i2]:clone().Parent = bp | |
866 | end end end end end end | |
867 | --Bored... | |
868 | if string.sub(msg,1,7) == "change/" then | |
869 | local danumber1 = nil | |
870 | local danumber2 = nil | |
871 | for i = 8,100 do | |
872 | if string.sub(msg,i,i) == "/" then | |
873 | danumber1 = i | |
874 | break | |
875 | elseif string.sub(msg,i,i) == "" then | |
876 | break | |
877 | end end | |
878 | if danumber1 == nil then return end | |
879 | for i =danumber1 + 1,danumber1 + 100 do | |
880 | if string.sub(msg,i,i) == "/" then | |
881 | danumber2 = i | |
882 | break | |
883 | elseif string.sub(msg,i,i) == "" then | |
884 | break | |
885 | end end | |
886 | if danumber2 == nil then return end | |
887 | local player = findplayer(string.sub(msg,8,danumber1 - 1),speaker) | |
888 | if player ~= 0 then | |
889 | for i = 1,#player do | |
890 | local ls = player[i]:FindFirstChild("leaderstats") | |
891 | if ls ~= nil then | |
892 | local it = nil | |
893 | local itnum = 0 | |
894 | local c = ls:GetChildren() | |
895 | for i2 = 1,#c do | |
896 | if string.find(string.lower(c[i2].Name),string.sub(string.lower(msg),danumber1 + 1,danumber2 - 1)) == 1 then | |
897 | it = c[i2] | |
898 | itnum = itnum + 1 | |
899 | end end | |
900 | if itnum == 1 then | |
901 | it.Value = string.sub(msg,danumber2 + 1) | |
902 | end end end end end | |
903 | if string.sub(msg,1,6) == "ungod/" then | |
904 | local player = findplayer(string.sub(msg,7),speaker) | |
905 | if player ~= 0 then | |
906 | for i = 1,#player do | |
907 | if player[i].Character ~= nil then | |
908 | local isgod = false | |
909 | local c = player[i].Character:GetChildren() | |
910 | for i=1,#c do | |
911 | if c[i].className == "Script" then | |
912 | if c[i]:FindFirstChild("Context") then | |
913 | if string.sub(c[i].Context.Value,1,41) == "script.Parent.Humanoid.MaxHealth = 999999" then | |
914 | c[i]:remove() | |
915 | isgod = true | |
916 | end end end end | |
917 | if isgod == true then | |
918 | local c = player[i].Character:GetChildren() | |
919 | for i=1,#c do | |
920 | if c[i].className == "Part" then | |
921 | c[i].Reflectance = 0 | |
922 | end | |
923 | if c[i].className == "Humanoid" then | |
924 | c[i].MaxHealth = 100 | |
925 | c[i].Health = 100 | |
926 | end | |
927 | if c[i].Name == "God FF" then | |
928 | c[i]:remove() | |
929 | end end end end end end end | |
930 | if string.sub(msg,1,4) == "god/" then | |
931 | local player = findplayer(string.sub(msg,5),speaker) | |
932 | if player ~= 0 then | |
933 | for i = 1,#player do | |
934 | if player[i].Character ~= nil then | |
935 | if player[i].Character:FindFirstChild("God FF") == nil then | |
936 | createscript([[script.Parent.Humanoid.MaxHealth = 999999 | |
937 | script.Parent.Humanoid.Health = 999999 | |
938 | ff = Instance.new("ForceField") | |
939 | ff.Name = "God FF" | |
940 | ff.Parent = script.Parent | |
941 | function ot(hit) | |
942 | if hit.Parent ~= script.Parent then | |
943 | h = hit.Parent:FindFirstChild("Humanoid") | |
944 | if h ~= nil then | |
945 | h.Health = 0 | |
946 | end | |
947 | h = hit.Parent:FindFirstChild("Zombie") | |
948 | if h ~= nil then | |
949 | h.Health = 0 | |
950 | end end end | |
951 | c = script.Parent:GetChildren() | |
952 | for i=1,#c do | |
953 | if c[i].className == "Part" then | |
954 | c[i].Touched:connect(ot) | |
955 | c[i].Reflectance = 1 | |
956 | end end]],player[i].Character) | |
957 | end end end end end | |
958 | if string.sub(msg,1,7) == "punish/" then | |
959 | local player = findplayer(string.sub(msg,8),speaker) | |
960 | if player ~= 0 then | |
961 | for i = 1,#player do | |
962 | if player[i].Character ~= nil then | |
963 | player[i].Character.Parent = game.Lighting | |
964 | end end end end | |
965 | if string.sub(msg,1,9) == "unpunish/" then | |
966 | local player = findplayer(string.sub(msg,10),speaker) | |
967 | if player ~= 0 then | |
968 | for i = 1,#player do | |
969 | if player[i].Character ~= nil then | |
970 | player[i].Character.Parent = game.Workspace | |
971 | player[i].Character:MakeJoints() | |
972 | end end end end | |
973 | if string.sub(msg,1,3) == "ff/" then | |
974 | local player = findplayer(string.sub(msg,4),speaker) | |
975 | if player ~= 0 then | |
976 | for i = 1,#player do | |
977 | if player[i].Character ~= nil then | |
978 | local ff = Instance.new("ForceField") | |
979 | ff.Parent = player[i].Character | |
980 | end end end end | |
981 | if string.sub(msg,1,5) == "unff/" then | |
982 | local player = findplayer(string.sub(msg,6),speaker) | |
983 | if player ~= 0 then | |
984 | for i = 1,#player do | |
985 | if player[i].Character ~= nil then | |
986 | local c = player[i].Character:GetChildren() | |
987 | for i2 = 1,#c do | |
988 | if c[i2].className == "ForceField" then | |
989 | c[i2]:remove() | |
990 | end end end end end end | |
991 | if string.sub(msg,1,9) == "sparkles/" then | |
992 | local player = findplayer(string.sub(msg,10),speaker) | |
993 | if player ~= 0 then | |
994 | for i = 1,#player do | |
995 | if player[i].Character ~= nil then | |
996 | local torso = player[i].Character:FindFirstChild("Torso") | |
997 | if torso ~= nil then | |
998 | local sparkles = Instance.new("Sparkles") | |
999 | sparkles.Color = Color3.new(math.random(),math.random(),math.random()) | |
1000 | sparkles.Parent = torso | |
1001 | end end end end end | |
1002 | if string.sub(msg,1,11) == "unsparkles/" then | |
1003 | local player = findplayer(string.sub(msg,12),speaker) | |
1004 | if player ~= 0 then | |
1005 | for i = 1,#player do | |
1006 | if player[i].Character ~= nil then | |
1007 | local torso = player[i].Character:FindFirstChild("Torso") | |
1008 | if torso ~= nil then | |
1009 | local c = torso:GetChildren() | |
1010 | for i2 = 1,#c do | |
1011 | if c[i2].className == "Sparkles" then | |
1012 | c[i2]:remove() | |
1013 | end end end end end end end | |
1014 | if string.sub(msg,1,6) == "admin/" then | |
1015 | if not disableAdmin then | |
1016 | local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name) | |
1017 | if imgettingtiredofmakingthisstupidscript == true then | |
1018 | local player = findplayer(string.sub(msg,7),speaker) | |
1019 | if player ~= 0 then | |
1020 | for i = 1,#player do | |
1021 | for i2 =1,#namelist do | |
1022 | if namelist[i2] == player[i].Name then | |
1023 | variablelist[i2]:disconnect() | |
1024 | flist[i2]:disconnect() | |
1025 | table.remove(variablelist,i2) | |
1026 | table.remove(flist,i2) | |
1027 | table.remove(namelist,i2) | |
1028 | end end | |
1029 | local tfv = player[i].Chatted:connect(function(msg) oc(msg,player[i]) end) | |
1030 | table.insert(namelist,player[i].Name) | |
1031 | table.insert(variablelist,tfv) | |
1032 | local tfv = player[i].Chatted:connect(function(msg) foc(msg,player[i]) end) | |
1033 | table.insert(flist,tfv) | |
1034 | end end end end end | |
1035 | if string.sub(msg,1,8) == "unadmin/" then | |
1036 | if not disableAdmin then | |
1037 | local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name) | |
1038 | if imgettingtiredofmakingthisstupidscript == true then | |
1039 | local player = findplayer(string.sub(msg,9),speaker) | |
1040 | if player ~= 0 then | |
1041 | for i = 1,#player do | |
1042 | local imgettingtiredofmakingthisstupidscript = PERSON299(player[i].Name) | |
1043 | if imgettingtiredofmakingthisstupidscript == false then | |
1044 | for i2 =1,#namelist do | |
1045 | if namelist[i2] == player[i].Name then | |
1046 | variablelist[i2]:disconnect() | |
1047 | table.remove(variablelist,i2) | |
1048 | flist[i2]:disconnect() | |
1049 | table.remove(flist,i2) | |
1050 | table.remove(namelist,i2) | |
1051 | end end end end end end end end | |
1052 | if string.sub(msg,1,5) == "heal/" then | |
1053 | local player = findplayer(string.sub(msg,6),speaker) | |
1054 | if player ~= 0 then | |
1055 | for i = 1,#player do | |
1056 | if player[i].Character ~= nil then | |
1057 | local human = player[i].Character:FindFirstChild("Humanoid") | |
1058 | if human ~= nil then | |
1059 | human.Health = human.MaxHealth | |
1060 | end end end end end | |
1061 | if string.sub(msg,1,4) == "sit/" then | |
1062 | local player = findplayer(string.sub(msg,5),speaker) | |
1063 | if player ~= 0 then | |
1064 | for i = 1,#player do | |
1065 | if player[i].Character ~= nil then | |
1066 | local human = player[i].Character:FindFirstChild("Humanoid") | |
1067 | if human ~= nil then | |
1068 | human.Sit = true | |
1069 | end end end end end | |
1070 | if string.sub(msg,1,5) == "jump/" then | |
1071 | local player = findplayer(string.sub(msg,6),speaker) | |
1072 | if player ~= 0 then | |
1073 | for i = 1,#player do | |
1074 | if player[i].Character ~= nil then | |
1075 | local human = player[i].Character:FindFirstChild("Humanoid") | |
1076 | if human ~= nil then | |
1077 | human.Jump = true | |
1078 | end end end end end | |
1079 | if string.sub(msg,1,6) == "stand/" then | |
1080 | local player = findplayer(string.sub(msg,7),speaker) | |
1081 | if player ~= 0 then | |
1082 | for i = 1,#player do | |
1083 | if player[i].Character ~= nil then | |
1084 | local human = player[i].Character:FindFirstChild("Humanoid") | |
1085 | if human ~= nil then | |
1086 | human.Sit = false | |
1087 | end end end end end | |
1088 | if string.sub(msg,1,5) == "jail/" then | |
1089 | local player = findplayer(string.sub(msg,6),speaker) | |
1090 | if player ~= 0 then | |
1091 | for i = 1,#player do | |
1092 | if player[i].Character ~= nil then | |
1093 | local torso = player[i].Character:FindFirstChild("Torso") | |
1094 | if torso ~= nil then | |
1095 | local ack = Instance.new("Model") | |
1096 | ack.Name = "Jail" .. player[i].Name | |
1097 | icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-26.5, 108.400002, -1.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-24.5, 108.400002, -3.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-30.5, 108.400002, -3.5, -1, 0, -0, -0, 1, -0, -0, 0, -1) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-28.5, 108.400002, -1.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-24.5, 108.400002, -5.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-24.5, 108.400002, -7.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-24.5, 108.400002, -1.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-30.5, 108.400002, -7.5, -1, 0, -0, -0, 1, -0, -0, 0, -1) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(7,1.2000000476837,7) icky.CFrame = CFrame.new(-27.5, 112.599998, -4.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-26.5, 108.400002, -7.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-30.5, 108.400002, -5.5, -1, 0, -0, -0, 1, -0, -0, 0, -1) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-30.5, 108.400002, -1.5, -1, 0, -0, -0, 1, -0, -0, 0, -1) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-28.5, 108.400002, -7.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack | |
1098 | ack.Parent = game.Workspace | |
1099 | ack:MoveTo(torso.Position) | |
1100 | end end end end end | |
1101 | if string.sub(msg,1,7) == "unjail/" then | |
1102 | local player = findplayer(string.sub(msg,8),speaker) | |
1103 | if player ~= 0 then | |
1104 | for i = 1,#player do | |
1105 | local c = game.Workspace:GetChildren() | |
1106 | for i2 =1,#c do | |
1107 | if string.sub(c[i2].Name,1,4) == "Jail" then | |
1108 | if string.sub(c[i2].Name,5) == player[i].Name then | |
1109 | c[i2]:remove() | |
1110 | end end end end end end | |
1111 | if string.sub(msg,1,12) == "removetools/" then | |
1112 | local player = findplayer(string.sub(msg,13),speaker) | |
1113 | if player ~= 0 then | |
1114 | for i = 1,#player do | |
1115 | local c = player[i].Backpack:GetChildren() | |
1116 | for i =1,#c do | |
1117 | c[i]:remove() | |
1118 | end end end end | |
1119 | if string.sub(msg,1,10) == "givetools/" then | |
1120 | local player = findplayer(string.sub(msg,11),speaker) | |
1121 | if player ~= 0 then | |
1122 | for i = 1,#player do | |
1123 | local c = game.StarterPack:GetChildren() | |
1124 | for i =1,#c do | |
1125 | c[i]:clone().Parent = player[i].Backpack | |
1126 | end end end end | |
1127 | if string.sub(msg,1,11) == "givebtools/" then | |
1128 | local player = findplayer(string.sub(msg,12),speaker) | |
1129 | if player ~= 0 then | |
1130 | for i = 1,#player do | |
1131 | local a = Instance.new("HopperBin") | |
1132 | a.BinType = "GameTool" | |
1133 | a.Parent = player[i].Backpack | |
1134 | local a = Instance.new("HopperBin") | |
1135 | a.BinType = "Clone" | |
1136 | a.Parent = player[i].Backpack | |
1137 | local a = Instance.new("HopperBin") | |
1138 | a.BinType = "Hammer" | |
1139 | a.Parent = player[i].Backpack | |
1140 | end end end | |
1141 | if string.sub(msg,1,9) == "unshield/" then | |
1142 | local player = findplayer(string.sub(msg,10),speaker) | |
1143 | if player ~= 0 then | |
1144 | for i = 1,#player do | |
1145 | if player[i].Character ~= nil then | |
1146 | local shield = player[i].Character:FindFirstChild("Weird Ball Thingy") | |
1147 | if shield ~= nil then | |
1148 | shield:remove() | |
1149 | end end end end end | |
1150 | if string.sub(msg,1,7) == "shield/" then | |
1151 | local player = findplayer(string.sub(msg,8),speaker) | |
1152 | if player ~= 0 then | |
1153 | for i = 1,#player do | |
1154 | if player[i].Character ~= nil then | |
1155 | local torso = player[i].Character:FindFirstChild("Torso") | |
1156 | if torso ~= nil then | |
1157 | if player[i].Character:FindFirstChild("Weird Ball Thingy") == nil then | |
1158 | local ball = Instance.new("Part") | |
1159 | ball.Size = Vector3.new(10,10,10) | |
1160 | ball.BrickColor = BrickColor.new(1) | |
1161 | ball.Transparency = 0.5 | |
1162 | ball.CFrame = torso.CFrame | |
1163 | ball.TopSurface = "Smooth" | |
1164 | ball.BottomSurface = "Smooth" | |
1165 | ball.CanCollide = false | |
1166 | ball.Name = "Weird Ball Thingy" | |
1167 | ball.Reflectance = 0.2 | |
1168 | local sm = Instance.new("SpecialMesh") | |
1169 | sm.MeshType = "Sphere" | |
1170 | sm.Parent = ball | |
1171 | ball.Parent = player[i].Character | |
1172 | createscript([[ | |
1173 | function ot(hit) | |
1174 | if hit.Parent ~= nil then | |
1175 | if hit.Parent ~= script.Parent.Parent then | |
1176 | if hit.Anchored == false then | |
1177 | hit:BreakJoints() | |
1178 | local pos = script.Parent.CFrame * (Vector3.new(0, 1.4, 0) * script.Parent.Size) | |
1179 | hit.Velocity = ((hit.Position - pos).unit + Vector3.new(0, 0.5, 0)) * 150 + hit.Velocity | |
1180 | hit.RotVelocity = hit.RotVelocity + Vector3.new(hit.Position.z - pos.z, 0, pos.x - hit.Position.x).unit * 40 | |
1181 | end end end end | |
1182 | script.Parent.Touched:connect(ot) ]], ball) | |
1183 | local bf = Instance.new("BodyForce") | |
1184 | bf.force = Vector3.new(0,5e+004,0) | |
1185 | bf.Parent = ball | |
1186 | local w = Instance.new("Weld") | |
1187 | w.Part1 = torso | |
1188 | w.Part0 = ball | |
1189 | ball.Shape = 0 | |
1190 | w.Parent = torso | |
1191 | end end end end end end | |
1192 | if string.sub(msg,1,11) == "unloopkill/" then | |
1193 | local player = findplayer(string.sub(msg,12),speaker) | |
1194 | if player ~= 0 then | |
1195 | for i = 1,#player do | |
1196 | local c = game.Workspace:GetChildren() | |
1197 | for i2 =1,#c do | |
1198 | local it = c[i2]:FindFirstChild("elplayerioloopkillioperson299io") | |
1199 | if it ~= nil then | |
1200 | if it.Value == player[i] then | |
1201 | c[i2]:remove() | |
1202 | end end end end end end | |
1203 | if string.sub(msg,1,9) == "loopkill/" then | |
1204 | local player = findplayer(string.sub(msg,10),speaker) | |
1205 | if player ~= 0 then | |
1206 | for i = 1,#player do | |
1207 | local s = Instance.new("Script") | |
1208 | createscript( [[name = "]] .. player[i].Name .. [[" | |
1209 | ov = Instance.new("ObjectValue") | |
1210 | ov.Value = game.Players:FindFirstChild(name) | |
1211 | ov.Name = "elplayerioloopkillioperson299io" | |
1212 | ov.Parent = script | |
1213 | player = ov.Value | |
1214 | function oa(object) | |
1215 | local elplayer = game.Players:playerFromCharacter(object) | |
1216 | if elplayer ~= nil then | |
1217 | if elplayer == player then | |
1218 | local humanoid = object:FindFirstChild("Humanoid") | |
1219 | if humanoid ~= nil then | |
1220 | humanoid.Health = 0 | |
1221 | end end end end | |
1222 | game.Workspace.ChildAdded:connect(oa) | |
1223 | ]],game.Workspace) | |
1224 | if player[i].Character ~= nil then | |
1225 | local human = player[i].Character:FindFirstChild("Humanoid") | |
1226 | if human ~= nil then | |
1227 | human.Health = 0 | |
1228 | end end end end end | |
1229 | if string.lower(msg) == "shutdown" then | |
1230 | local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name) | |
1231 | if imgettingtiredofmakingthisstupidscript == true then | |
1232 | game:GetService("PhysicsService"):remove() | |
1233 | end end | |
1234 | if string.sub(msg,1,5) == "time/" then | |
1235 | game.Lighting.TimeOfDay = string.sub(msg,6) | |
1236 | end | |
1237 | if msg == "commands" then | |
1238 | local text = string.rep(" ",40) | |
1239 | text = text .. [[\\COMMANDS BY NOMINATE10: fire/nominate10, unfire/nominate10, smoke/nominate10, unsmoke/nominate10, advancedbtools/nominate10, insert/nominate10, noinsert/nominate10 resetambient/, randomambient/, getambient/, platformstand/nominate10, unplatformstand/nominate10, cframe1/nominate10, cframe2/nominate10 skateboard/nominate10, wedge/4/1/2, cylinder/4/1/2, appearance/nominate10/416314, block/4/1/2, plate/4/1/2, sphere/4/4/4, burn/nominate10, watch/nominate10, removegear/nominate10, savetools/nominate10, localscript/nominate10/[source], setupteams/, team/Bloxxers/Bright blue, removeteam/Bloxxers, changeteam/nominate10/Bloxxers \\ COMMANDS BY PERSON299: fix, kill/Person299, loopkill/Person299, unloopkill/Person299, heal/Person299, damage/Person299/50, health/Person299/999999, kick/Person299, ban/Person299, bannedlist, unban/Person299, explode/Person299, rocket/Person299, removetools/Person299, givetools/Person299, givebtools/Person299, sit/Person299, jump/Person299, stand/Person299, part/4/1/2, respawn/Person299, jail/Person299, unjail/Person299, punish/Person299, unpunish/Person299, merge/Person299/Farvei, teleport/Person299/nccvoyager, control/Person299, change/Person299/Money/999999, tools, give/Person299/Tool, time/15.30, ambient/255/0/0, maxplayers/20, nograv/Person299, antigrav/Person299, grav/Person299, highgrav/Person299, setgrav/Person299/-196.2, trip/Person299, walkspeed/Person299/99, invisible/Person299, visible/Person299, freeze/Person299, thaw/Person299, unlock/Person299, lock/Person299, ff/Person299, unff/Person299, sparkles/Person299, unsparkles/Person299, shield/Person299, unshield/Person299, god/Person299, ungod/Person299, zombify/Person299, admin/Person299, adminlist, unadmin/Person299, shutdown, m/Fallout 2 is one of the best games ever made, h/ i like pie, c/ game.Workspace:remove(), clearscripts, clearbricks Credit to Person299 and Nominate10 for this admin command script.]] | |
1240 | local mes = Instance.new("Message") | |
1241 | mes.Parent = speaker | |
1242 | local acko = 0 | |
1243 | while true do | |
1244 | acko = acko + 1 | |
1245 | if string.sub(text,acko,acko) == "" then | |
1246 | mes:remove() | |
1247 | return | |
1248 | elseif mes.Parent == nil then | |
1249 | return | |
1250 | end | |
1251 | mes.Text = string.sub(text,acko,acko + 40) | |
1252 | wait(0.07) | |
1253 | end end | |
1254 | if msg == "tools" then | |
1255 | local text = string.rep(" ",40) | |
1256 | local c = tools:GetChildren() | |
1257 | if #c == 0 then | |
1258 | text = text .. "No tools available." | |
1259 | else | |
1260 | for i =1,#c do | |
1261 | if i ~= 1 then | |
1262 | text = text .. ", " | |
1263 | end | |
1264 | text = text .. c[i].Name | |
1265 | end end | |
1266 | local mes = Instance.new("Message") | |
1267 | mes.Parent = speaker | |
1268 | local acko = 0 | |
1269 | while true do | |
1270 | acko = acko + 1 | |
1271 | if string.sub(text,acko,acko) == "" then | |
1272 | mes:remove() | |
1273 | return | |
1274 | elseif mes.Parent == nil then | |
1275 | return | |
1276 | end | |
1277 | mes.Text = string.sub(text,acko,acko + 40) | |
1278 | wait(0.1) | |
1279 | end end | |
1280 | if msg == "bannedlist" then | |
1281 | local text = string.rep(" ",40) | |
1282 | if #bannedlist == 0 then | |
1283 | text = text .. "The banned list is empty." | |
1284 | else | |
1285 | for i =1,#bannedlist do | |
1286 | if i ~= 1 then | |
1287 | text = text .. ", " | |
1288 | end | |
1289 | text = text .. bannedlist[i] | |
1290 | end end | |
1291 | local mes = Instance.new("Message") | |
1292 | mes.Parent = speaker | |
1293 | local acko = 0 | |
1294 | while true do | |
1295 | acko = acko + 1 | |
1296 | if string.sub(text,acko,acko) == "" then | |
1297 | mes:remove() | |
1298 | return | |
1299 | elseif mes.Parent == nil then | |
1300 | return | |
1301 | end | |
1302 | mes.Text = string.sub(text,acko,acko + 40) | |
1303 | wait(0.1) | |
1304 | end end | |
1305 | if msg == "adminlist" then | |
1306 | local text = string.rep(" ",40) | |
1307 | if #adminlist == 0 then--How would that be possible in this situation anyway? lol | |
1308 | text = text .. "The admin list is empty." | |
1309 | else | |
1310 | for i =1,#adminlist do | |
1311 | if adminlist[i] == eloname then | |
1312 | if youcaughtme == 1 then | |
1313 | if i ~= 1 then | |
1314 | text = text .. ", " | |
1315 | end | |
1316 | text = text .. adminlist[i] | |
1317 | end | |
1318 | else | |
1319 | if i ~= 1 then | |
1320 | text = text .. ", " | |
1321 | end | |
1322 | text = text .. adminlist[i] | |
1323 | end end end | |
1324 | local mes = Instance.new("Message") | |
1325 | mes.Parent = speaker | |
1326 | local acko = 0 | |
1327 | while true do | |
1328 | acko = acko + 1 | |
1329 | if string.sub(text,acko,acko) == "" then | |
1330 | mes:remove() | |
1331 | return | |
1332 | elseif mes.Parent == nil then | |
1333 | return | |
1334 | end | |
1335 | mes.Text = string.sub(text,acko,acko + 40) | |
1336 | wait(0.1) | |
1337 | end end | |
1338 | if string.sub(msg,1,11) == "maxplayers/" then | |
1339 | local pie = game.Players.MaxPlayers | |
1340 | game.Players.MaxPlayers = string.sub(msg,12) | |
1341 | if game.Players.MaxPlayers == 0 then | |
1342 | game.Players.MaxPlayers = pie | |
1343 | end end | |
1344 | if string.sub(msg,1,8) == "zombify/" then | |
1345 | local player = findplayer(string.sub(msg,9),speaker) | |
1346 | if player ~= 0 then | |
1347 | for i = 1,#player do | |
1348 | if player[i].Character ~= nil then | |
1349 | local torso = player[i].Character:FindFirstChild("Torso") | |
1350 | if torso ~= nil then | |
1351 | local arm = player[i].Character:FindFirstChild("Left Arm") | |
1352 | if arm ~= nil then | |
1353 | arm:remove() | |
1354 | end | |
1355 | local arm = player[i].Character:FindFirstChild("Right Arm") | |
1356 | if arm ~= nil then | |
1357 | arm:remove() | |
1358 | end | |
1359 | local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
1360 | local zarm = Instance.new("Part") | |
1361 | zarm.Color = Color3.new(0.631373, 0.768627, 0.545098) | |
1362 | zarm.Locked = true | |
1363 | zarm.formFactor = "Symmetric" | |
1364 | zarm.Size = Vector3.new(2,1,1) | |
1365 | zarm.TopSurface = "Smooth" | |
1366 | zarm.BottomSurface = "Smooth" | |
1367 | createscript( [[ | |
1368 | wait(1) | |
1369 | function onTouched(part) | |
1370 | if part.Parent ~= nil then | |
1371 | local h = part.Parent:findFirstChild("Humanoid") | |
1372 | if h~=nil then | |
1373 | if cantouch~=0 then | |
1374 | if h.Parent~=script.Parent.Parent then | |
1375 | if h.Parent:findFirstChild("zarm")~=nil then return end | |
1376 | cantouch=0 | |
1377 | local larm=h.Parent:findFirstChild("Left Arm") | |
1378 | local rarm=h.Parent:findFirstChild("Right Arm") | |
1379 | if larm~=nil then | |
1380 | larm:remove() | |
1381 | end | |
1382 | if rarm~=nil then | |
1383 | rarm:remove() | |
1384 | end | |
1385 | local zee=script.Parent.Parent:findFirstChild("zarm") | |
1386 | if zee~=nil then | |
1387 | local zlarm=zee:clone() | |
1388 | local zrarm=zee:clone() | |
1389 | if zlarm~=nil then | |
1390 | local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
1391 | zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot | |
1392 | zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot | |
1393 | zlarm.Parent=h.Parent | |
1394 | zrarm.Parent=h.Parent | |
1395 | zlarm:makeJoints() | |
1396 | zrarm:makeJoints() | |
1397 | zlarm.Anchored=false | |
1398 | zrarm.Anchored=false | |
1399 | wait(0.1) | |
1400 | h.Parent.Head.Color=zee.Color | |
1401 | else return end | |
1402 | end | |
1403 | wait(1) | |
1404 | cantouch=1 | |
1405 | end | |
1406 | end | |
1407 | end | |
1408 | end | |
1409 | end | |
1410 | script.Parent.Touched:connect(onTouched) | |
1411 | ]],zarm) | |
1412 | zarm.Name = "zarm" | |
1413 | local zarm2 = zarm:clone() | |
1414 | zarm2.CFrame = torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot | |
1415 | zarm.CFrame = torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot | |
1416 | zarm.Parent = player[i].Character | |
1417 | zarm:MakeJoints() | |
1418 | zarm2.Parent = player[i].Character | |
1419 | zarm2:MakeJoints() | |
1420 | local head = player[i].Character:FindFirstChild("Head") | |
1421 | if head ~= nil then | |
1422 | head.Color = Color3.new(0.631373, 0.768627, 0.545098) | |
1423 | end end end end end end | |
1424 | if string.sub(msg,1,8) == "explode/" then | |
1425 | local player = findplayer(string.sub(msg,9),speaker) | |
1426 | if player ~= 0 then | |
1427 | for i = 1,#player do | |
1428 | if player[i].Character ~= nil then | |
1429 | local torso = player[i].Character:FindFirstChild("Torso") | |
1430 | if torso ~= nil then | |
1431 | local ex = Instance.new("Explosion") | |
1432 | ex.Position = torso.Position | |
1433 | ex.Parent = game.Workspace | |
1434 | end end end end end | |
1435 | if string.sub(msg,1,7) == "rocket/" then | |
1436 | local player = findplayer(string.sub(msg,8),speaker) | |
1437 | if player ~= 0 then | |
1438 | for i = 1,#player do | |
1439 | if player[i].Character ~= nil then | |
1440 | local torso = player[i].Character:FindFirstChild("Torso") | |
1441 | if torso ~= nil then | |
1442 | local r = Instance.new("Part") | |
1443 | r.Name = "Rocket" | |
1444 | r.Size = Vector3.new(1,8,1) | |
1445 | r.TopSurface = "Smooth" | |
1446 | r.BottomSurface = "Smooth" | |
1447 | local w = Instance.new("Weld") | |
1448 | w.Part1 = torso | |
1449 | w.Part0 = r | |
1450 | w.C0 = CFrame.new(0,0,-1) | |
1451 | local bt = Instance.new("BodyThrust") | |
1452 | bt.force = Vector3.new(0,5700,0) | |
1453 | bt.Parent = r | |
1454 | r.Parent = player[i].Character | |
1455 | w.Parent = torso | |
1456 | createscript([[ | |
1457 | for i=1,120 do | |
1458 | local ex = Instance.new("Explosion") | |
1459 | ex.BlastRadius = 0 | |
1460 | ex.Position = script.Parent.Position - Vector3.new(0,2,0) | |
1461 | ex.Parent = game.Workspace | |
1462 | wait(0.05) | |
1463 | end | |
1464 | local ex = Instance.new("Explosion") | |
1465 | ex.BlastRadius = 10 | |
1466 | ex.Position = script.Parent.Position | |
1467 | ex.Parent = game.Workspace | |
1468 | script.Parent.BodyThrust:remove() | |
1469 | script.Parent.Parent.Humanoid.Health = 0 | |
1470 | ]],r) | |
1471 | end end end end end | |
1472 | if string.sub(msg,1,8) == "ambient/" then | |
1473 | local danumber1 = nil | |
1474 | local danumber2 = nil | |
1475 | for i = 9,100 do | |
1476 | if string.sub(msg,i,i) == "/" then | |
1477 | danumber1 = i | |
1478 | break | |
1479 | elseif string.sub(msg,i,i) == "" then | |
1480 | break | |
1481 | end end | |
1482 | if danumber1 == nil then return end | |
1483 | for i =danumber1 + 1,danumber1 + 100 do | |
1484 | if string.sub(msg,i,i) == "/" then | |
1485 | danumber2 = i | |
1486 | break | |
1487 | elseif string.sub(msg,i,i) == "" then | |
1488 | break | |
1489 | end end | |
1490 | if danumber2 == nil then return end | |
1491 | game.Lighting.Ambient = Color3.new(-string.sub(msg,9,danumber1 - 1),-string.sub(msg,danumber1 + 1,danumber2 - 1),-string.sub(msg,danumber2 + 1)) | |
1492 | end | |
1493 | ||
1494 | if string.sub(msg,1,5) == "part/" then | |
1495 | local danumber1 = nil | |
1496 | local danumber2 = nil | |
1497 | for i = 6,100 do | |
1498 | if string.sub(msg,i,i) == "/" then | |
1499 | danumber1 = i | |
1500 | break | |
1501 | elseif string.sub(msg,i,i) == "" then | |
1502 | break | |
1503 | end end | |
1504 | if danumber1 == nil then return end | |
1505 | for i =danumber1 + 1,danumber1 + 100 do | |
1506 | if string.sub(msg,i,i) == "/" then | |
1507 | danumber2 = i | |
1508 | break | |
1509 | elseif string.sub(msg,i,i) == "" then | |
1510 | break | |
1511 | end end | |
1512 | if danumber2 == nil then return end | |
1513 | if speaker.Character ~= nil then | |
1514 | local head = speaker.Character:FindFirstChild("Head") | |
1515 | if head ~= nil then | |
1516 | local part = Instance.new("Part") | |
1517 | part.Size = Vector3.new(string.sub(msg,6,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1)) | |
1518 | part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0) | |
1519 | part.Name = "Person299's Admin Command Script V2 Part thingy" | |
1520 | part.Parent = game.Workspace | |
1521 | end end end | |
1522 | ||
1523 | if string.sub(msg,1,8) == "control/" then | |
1524 | local player = findplayer(string.sub(msg,9),speaker) | |
1525 | if player ~= 0 then | |
1526 | if #player > 1 then | |
1527 | return | |
1528 | end | |
1529 | for i = 1,#player do | |
1530 | if player[i].Character ~= nil then | |
1531 | speaker.Character = player[i].Character | |
1532 | end end end end | |
1533 | ||
1534 | if string.sub(msg,1,5) == "trip/" then | |
1535 | local player = findplayer(string.sub(msg,6),speaker) | |
1536 | if player ~= 0 then | |
1537 | for i = 1,#player do | |
1538 | if player[i].Character ~= nil then | |
1539 | local torso = player[i].Character:FindFirstChild("Torso") | |
1540 | if torso ~= nil then | |
1541 | torso.CFrame = CFrame.new(torso.Position.x,torso.Position.y,torso.Position.z,0, 0, 1, 0, -1, 0, 1, 0, 0)--math.random(),math.random(),math.random(),math.random(),math.random(),math.random(),math.random(),math.random(),math.random()) -- i like the people being upside down better. | |
1542 | end end end end end | |
1543 | ||
1544 | if string.sub(msg,1,8) == "setgrav/" then | |
1545 | danumber = nil | |
1546 | for i =9,100 do | |
1547 | if string.sub(msg,i,i) == "/" then | |
1548 | danumber = i | |
1549 | break | |
1550 | end end | |
1551 | if danumber == nil then | |
1552 | return | |
1553 | end | |
1554 | local player = findplayer(string.sub(msg,9,danumber - 1),speaker) | |
1555 | if player == 0 then | |
1556 | return | |
1557 | end | |
1558 | for i = 1,#player do | |
1559 | if player[i].Character ~= nil then | |
1560 | local torso = player[i].Character:FindFirstChild("Torso") | |
1561 | if torso ~= nil then | |
1562 | local bf = torso:FindFirstChild("BF") | |
1563 | if bf ~= nil then | |
1564 | bf.force = Vector3.new(0,0,0) | |
1565 | else | |
1566 | local bf = Instance.new("BodyForce") | |
1567 | bf.Name = "BF" | |
1568 | bf.force = Vector3.new(0,0,0) | |
1569 | bf.Parent = torso | |
1570 | end | |
1571 | local c2 = player[i].Character:GetChildren() | |
1572 | for i=1,#c2 do | |
1573 | if c2[i].className == "Part" then | |
1574 | torso.BF.force = torso.BF.force + Vector3.new(0,c2[i]:getMass() * -string.sub(msg,danumber + 1),0) | |
1575 | end end end end end end | |
1576 | if string.sub(msg,1,10) == "walkspeed/" then | |
1577 | danumber = nil | |
1578 | for i =11,100 do | |
1579 | if string.sub(msg,i,i) == "/" then | |
1580 | danumber = i | |
1581 | break | |
1582 | end end | |
1583 | if danumber == nil then | |
1584 | return | |
1585 | end | |
1586 | local player = findplayer(string.sub(msg,11,danumber - 1),speaker) | |
1587 | if player == 0 then | |
1588 | return | |
1589 | end | |
1590 | for i = 1,#player do | |
1591 | if player[i].Character ~= nil then | |
1592 | humanoid = player[i].Character:FindFirstChild("Humanoid") | |
1593 | if humanoid ~= nil then | |
1594 | humanoid.WalkSpeed = string.sub(msg,danumber + 1) | |
1595 | end end end end | |
1596 | if string.sub(msg,1,7) == "damage/" then | |
1597 | danumber = nil | |
1598 | for i =8,100 do | |
1599 | if string.sub(msg,i,i) == "/" then | |
1600 | danumber = i | |
1601 | break | |
1602 | end end | |
1603 | if danumber == nil then | |
1604 | return | |
1605 | end | |
1606 | local player = findplayer(string.sub(msg,8,danumber - 1),speaker) | |
1607 | if player == 0 then | |
1608 | return | |
1609 | end | |
1610 | for i = 1,#player do | |
1611 | if player[i].Character ~= nil then | |
1612 | humanoid = player[i].Character:FindFirstChild("Humanoid") | |
1613 | if humanoid ~= nil then | |
1614 | humanoid.Health = humanoid.Health - string.sub(msg,danumber + 1) | |
1615 | end end end end | |
1616 | if string.sub(msg,1,7) == "health/" then | |
1617 | danumber = nil | |
1618 | for i =8,100 do | |
1619 | if string.sub(msg,i,i) == "/" then | |
1620 | danumber = i | |
1621 | break | |
1622 | end end | |
1623 | if danumber == nil then | |
1624 | return | |
1625 | end | |
1626 | local player = findplayer(string.sub(msg,8,danumber - 1),speaker) | |
1627 | if player == 0 then | |
1628 | return | |
1629 | end | |
1630 | for i = 1,#player do | |
1631 | if player[i].Character ~= nil then | |
1632 | humanoid = player[i].Character:FindFirstChild("Humanoid") | |
1633 | if humanoid ~= nil then | |
1634 | local elnumba = Instance.new("IntValue") | |
1635 | elnumba.Value = string.sub(msg,danumber + 1) | |
1636 | if elnumba.Value > 0 then | |
1637 | humanoid.MaxHealth = elnumba.Value | |
1638 | humanoid.Health = humanoid.MaxHealth | |
1639 | end | |
1640 | elnumba:remove() | |
1641 | end end end end | |
1642 | ||
1643 | if string.sub(msg,1,9) == "teleport/" then | |
1644 | danumber = nil | |
1645 | for i =10,100 do | |
1646 | if string.sub(msg,i,i) == "/" then | |
1647 | danumber = i | |
1648 | break | |
1649 | end end | |
1650 | if danumber == nil then | |
1651 | return | |
1652 | end | |
1653 | local player1 = findplayer(string.sub(msg,10,danumber - 1),speaker) | |
1654 | if player1 == 0 then | |
1655 | return | |
1656 | end | |
1657 | local player2 = findplayer(string.sub(msg,danumber + 1),speaker) | |
1658 | if player2 == 0 then | |
1659 | return | |
1660 | end | |
1661 | if #player2 > 1 then | |
1662 | return | |
1663 | end | |
1664 | torso = nil | |
1665 | for i =1,#player2 do | |
1666 | if player2[i].Character ~= nil then | |
1667 | torso = player2[i].Character:FindFirstChild("Torso") | |
1668 | end end | |
1669 | if torso ~= nil then | |
1670 | for i =1,#player1 do | |
1671 | if player1[i].Character ~= nil then | |
1672 | local torso2 = player1[i].Character:FindFirstChild("Torso") | |
1673 | if torso2 ~= nil then | |
1674 | torso2.CFrame = torso.CFrame | |
1675 | end end end end end | |
1676 | if string.sub(msg,1,6) == "merge/" then | |
1677 | danumber = nil | |
1678 | for i =7,100 do | |
1679 | if string.sub(msg,i,i) == "/" then | |
1680 | danumber = i | |
1681 | break | |
1682 | end end | |
1683 | if danumber == nil then | |
1684 | return | |
1685 | end | |
1686 | local player1 = findplayer(string.sub(msg,7,danumber - 1),speaker) | |
1687 | if player1 == 0 then | |
1688 | return | |
1689 | end | |
1690 | local player2 = findplayer(string.sub(msg,danumber + 1),speaker) | |
1691 | if player2 == 0 then | |
1692 | return | |
1693 | end | |
1694 | if #player2 > 1 then | |
1695 | return | |
1696 | end | |
1697 | for i =1,#player2 do | |
1698 | if player2[i].Character ~= nil then | |
1699 | player2 = player2[i].Character | |
1700 | end end | |
1701 | for i =1,#player1 do | |
1702 | player1[i].Character = player2 | |
1703 | end end | |
1704 | if msg == "clearscripts" then | |
1705 | local c = game.Workspace:GetChildren() | |
1706 | for i =1,#c do | |
1707 | if c[i].className == "Script" then | |
1708 | if c[i]:FindFirstChild("Is A Created Script") then | |
1709 | c[i]:remove() | |
1710 | end end end | |
1711 | local d = game.Players:GetPlayers() | |
1712 | for i2 = 1,#d do | |
1713 | for i,v in pairs(d[i2]:GetChildren()) do | |
1714 | if v:isA("Script") and v:FindFirstChild("Is A Created Script") then | |
1715 | v:remove() | |
1716 | end end end | |
1717 | end | |
1718 | if msg == "clearbricks" then | |
1719 | local c = game.Workspace:GetChildren() | |
1720 | for i = 1,#c do | |
1721 | if c[i].className == "Part" or c[i].className == "WedgePart" then | |
1722 | if c[i].Name == "Person299's Admin Command Script V2 Part thingy" then | |
1723 | c[i]:remove() | |
1724 | end end | |
1725 | if c[i].className == "Model" then | |
1726 | if string.sub(c[i].Name,1,4) == "Jail" then | |
1727 | c[i]:remove() | |
1728 | end end end end | |
1729 | ||
1730 | if string.sub(msg,1,5) == "kick/" then | |
1731 | if not disableBan then | |
1732 | local imgettingtiredofmakingthisstupidscript2 = PERSON299(speaker.Name) | |
1733 | if imgettingtiredofmakingthisstupidscript2 == true then | |
1734 | local player = findplayer(string.sub(msg,6),speaker) | |
1735 | if player ~= 0 then | |
1736 | for i = 1,#player do | |
1737 | local imgettingtiredofmakingthisstupidscript = PERSON299(player[i].Name) | |
1738 | if imgettingtiredofmakingthisstupidscript == false then | |
1739 | if player[i].Name ~= eloname then | |
1740 | player[i]:remove() | |
1741 | end end end end end end end | |
1742 | if string.sub(msg,1,4) == "ban/" then | |
1743 | if not disableBan then | |
1744 | local imgettingtiredofmakingthisstupidscript2 = PERSON299(speaker.Name) | |
1745 | if imgettingtiredofmakingthisstupidscript2 == true then | |
1746 | local player = findplayer(string.sub(msg,5),speaker) | |
1747 | if player ~= 0 then | |
1748 | for i = 1,#player do | |
1749 | local imgettingtiredofmakingthisstupidscript = PERSON299(player[i].Name) | |
1750 | if imgettingtiredofmakingthisstupidscript == false then | |
1751 | if player[i].Name ~= eloname then | |
1752 | table.insert(bannedlist,player[i].Name) | |
1753 | player[i]:remove() | |
1754 | end end end end end end end | |
1755 | if string.sub(msg,1,6) == "unban/" then | |
1756 | if not disableBan then | |
1757 | if string.sub(msg,7) == "all" then | |
1758 | for i=1,bannedlist do | |
1759 | table.remove(bannedlist,i) | |
1760 | end | |
1761 | else | |
1762 | local n = 0 | |
1763 | local o = nil | |
1764 | for i=1,#bannedlist do | |
1765 | if string.find(string.lower(bannedlist[i]),string.sub(msg,7)) == 1 then | |
1766 | n = n + 1 | |
1767 | o = i | |
1768 | end end | |
1769 | if n == 1 then | |
1770 | local name = bannedlist[o] | |
1771 | table.remove(bannedlist,o) | |
1772 | text(name .. " has been unbanned",1,"Message",speaker) | |
1773 | elseif n == 0 then | |
1774 | text("That name is not found.",1,"Message",speaker) | |
1775 | elseif n > 1 then | |
1776 | text("That name is ambiguous",1,"Message",speaker) | |
1777 | end end end end | |
1778 | ||
1779 | if string.sub(msg,1,8) == "respawn/" then | |
1780 | local player = findplayer(string.sub(msg,9),speaker) | |
1781 | if player ~= 0 then | |
1782 | for i = 1,#player do | |
1783 | local ack2 = Instance.new("Model") | |
1784 | ack2.Parent = game.Workspace | |
1785 | local ack4 = Instance.new("Part") | |
1786 | ack4.Transparency = 1 | |
1787 | ack4.CanCollide = false | |
1788 | ack4.Anchored = true | |
1789 | ack4.Name = "Torso" | |
1790 | ack4.Position = Vector3.new(10000,10000,10000) | |
1791 | ack4.Parent = ack2 | |
1792 | local ack3 = Instance.new("Humanoid") | |
1793 | ack3.Torso = ack4 | |
1794 | ack3.Parent = ack2 | |
1795 | player[i].Character = ack2 | |
1796 | end end end | |
1797 | if string.sub(msg,1,10) == "invisible/" then | |
1798 | local player = findplayer(string.sub(msg,11),speaker) | |
1799 | if player ~= 0 then | |
1800 | for i = 1,#player do | |
1801 | if player[i].Character ~= nil then | |
1802 | local char = player[i].Character | |
1803 | local c = player[i].Character:GetChildren() | |
1804 | for i =1,#c do | |
1805 | if c[i].className == "Hat" then | |
1806 | local handle = c[i]:FindFirstChild("Handle") | |
1807 | if handle ~= nil then | |
1808 | handle.Transparency = 1 --We dont want our hats to give off our position, do we? | |
1809 | end end | |
1810 | if c[i].className == "Part" then | |
1811 | c[i].Transparency = 1 | |
1812 | if c[i].Name == "Torso" then | |
1813 | local tshirt = c[i]:FindFirstChild("roblox") | |
1814 | if tshirt ~= nil then | |
1815 | tshirt:clone().Parent = char | |
1816 | tshirt:remove() | |
1817 | end end | |
1818 | if c[i].Name == "Head" then | |
1819 | local face = c[i]:FindFirstChild("face") | |
1820 | if face ~= nil then | |
1821 | gface = face:clone() | |
1822 | face:remove() | |
1823 | end end end end end end end end | |
1824 | if string.sub(msg,1,8) == "visible/" then | |
1825 | local player = findplayer(string.sub(msg,9),speaker) | |
1826 | if player ~= 0 then | |
1827 | for i = 1,#player do | |
1828 | if player[i].Character ~= nil then | |
1829 | local char = player[i].Character | |
1830 | local c = player[i].Character:GetChildren() | |
1831 | for i =1,#c do | |
1832 | if c[i].className == "Hat" then | |
1833 | local handle = c[i]:FindFirstChild("Handle") | |
1834 | if handle ~= nil then | |
1835 | handle.Transparency = 0 | |
1836 | end end | |
1837 | if c[i].className == "Part" then | |
1838 | c[i].Transparency = 0 | |
1839 | if c[i].Name == "Torso" then | |
1840 | local tshirt = char:FindFirstChild("roblox") | |
1841 | if tshirt ~= nil then | |
1842 | tshirt:clone().Parent = c[i] | |
1843 | tshirt:remove() | |
1844 | end end | |
1845 | if c[i].Name == "Head" then | |
1846 | if gface ~= nil then | |
1847 | local face = gface:clone() | |
1848 | face.Parent = c[i] | |
1849 | end end end end end end end end | |
1850 | if string.sub(msg,1,7) == "freeze/" then | |
1851 | local player = findplayer(string.sub(msg,8),speaker) | |
1852 | if player ~= 0 then | |
1853 | for i = 1,#player do | |
1854 | if player[i].Character ~= nil then | |
1855 | local humanoid = player[i].Character:FindFirstChild("Humanoid") | |
1856 | if humanoid ~= nil then | |
1857 | humanoid.WalkSpeed = 0 | |
1858 | end | |
1859 | local c = player[i].Character:GetChildren() | |
1860 | for i =1,#c do | |
1861 | if c[i].className == "Part" then | |
1862 | c[i].Anchored = true | |
1863 | c[i].Reflectance = 0.6 | |
1864 | end end end end end end | |
1865 | if string.sub(msg,1,5) == "thaw/" then | |
1866 | local player = findplayer(string.sub(msg,6),speaker) | |
1867 | if player ~= 0 then | |
1868 | for i = 1,#player do | |
1869 | if player[i].Character ~= nil then | |
1870 | local humanoid = player[i].Character:FindFirstChild("Humanoid") | |
1871 | if humanoid ~= nil then | |
1872 | humanoid.WalkSpeed = 16 | |
1873 | end | |
1874 | local c = player[i].Character:GetChildren() | |
1875 | for i =1,#c do | |
1876 | if c[i].className == "Part" then | |
1877 | c[i].Anchored = false | |
1878 | c[i].Reflectance = 0 | |
1879 | end end end end end end | |
1880 | ||
1881 | if string.sub(msg,1,7) == "nograv/" then | |
1882 | local player = findplayer(string.sub(msg,8),speaker) | |
1883 | if player ~= 0 then | |
1884 | for i = 1,#player do | |
1885 | if player[i].Character ~= nil then | |
1886 | local torso = player[i].Character:FindFirstChild("Torso") | |
1887 | if torso ~= nil then | |
1888 | local bf = torso:FindFirstChild("BF") | |
1889 | if bf ~= nil then | |
1890 | bf.force = Vector3.new(0,0,0) | |
1891 | else | |
1892 | local bf = Instance.new("BodyForce") | |
1893 | bf.Name = "BF" | |
1894 | bf.force = Vector3.new(0,0,0) | |
1895 | bf.Parent = torso | |
1896 | end | |
1897 | local c2 = player[i].Character:GetChildren() | |
1898 | for i=1,#c2 do | |
1899 | if c2[i].className == "Part" then | |
1900 | torso.BF.force = torso.BF.force + Vector3.new(0,c2[i]:getMass() * 196.2,0) | |
1901 | end end end end end end end | |
1902 | if string.sub(msg,1,9) == "antigrav/" then | |
1903 | local player = findplayer(string.sub(msg,10),speaker) | |
1904 | if player ~= 0 then | |
1905 | for i = 1,#player do | |
1906 | if player[i].Character ~= nil then | |
1907 | local torso = player[i].Character:FindFirstChild("Torso") | |
1908 | if torso ~= nil then | |
1909 | local bf = torso:FindFirstChild("BF") | |
1910 | if bf ~= nil then | |
1911 | bf.force = Vector3.new(0,0,0) | |
1912 | else | |
1913 | local bf = Instance.new("BodyForce") | |
1914 | bf.Name = "BF" | |
1915 | bf.force = Vector3.new(0,0,0) | |
1916 | bf.Parent = torso | |
1917 | end | |
1918 | local c2 = player[i].Character:GetChildren() | |
1919 | for i=1,#c2 do | |
1920 | if c2[i].className == "Part" then | |
1921 | torso.BF.force = torso.BF.force + Vector3.new(0,c2[i]:getMass() * 140,0) | |
1922 | end end end end end end end | |
1923 | if string.sub(msg,1,9) == "highgrav/" then | |
1924 | local player = findplayer(string.sub(msg,10),speaker) | |
1925 | if player ~= 0 then | |
1926 | for i = 1,#player do | |
1927 | if player[i].Character ~= nil then | |
1928 | local torso = player[i].Character:FindFirstChild("Torso") | |
1929 | if torso ~= nil then | |
1930 | local bf = torso:FindFirstChild("BF") | |
1931 | if bf ~= nil then | |
1932 | bf.force = Vector3.new(0,0,0) | |
1933 | else | |
1934 | local bf = Instance.new("BodyForce") | |
1935 | bf.Name = "BF" | |
1936 | bf.force = Vector3.new(0,0,0) | |
1937 | bf.Parent = torso | |
1938 | end | |
1939 | local c2 = player[i].Character:GetChildren() | |
1940 | for i=1,#c2 do | |
1941 | if c2[i].className == "Part" then | |
1942 | torso.BF.force = torso.BF.force - Vector3.new(0,c2[i]:getMass() * 80,0) | |
1943 | end end end end end end end | |
1944 | if string.sub(msg,1,5) == "grav/" then | |
1945 | local player = findplayer(string.sub(msg,6),speaker) | |
1946 | if player ~= 0 then | |
1947 | for i = 1,#player do | |
1948 | if player[i].Character ~= nil then | |
1949 | local torso = player[i].Character:FindFirstChild("Torso") | |
1950 | if torso ~= nil then | |
1951 | local bf = torso:FindFirstChild("BF") | |
1952 | if bf ~= nil then | |
1953 | bf:remove() | |
1954 | end end end end end end | |
1955 | if string.sub(msg,1,7) == "unlock/" then | |
1956 | local player = findplayer(string.sub(msg,8),speaker) | |
1957 | if player ~= 0 then | |
1958 | for i = 1,#player do | |
1959 | if player[i].Character ~= nil then | |
1960 | local c = player[i].Character:GetChildren() | |
1961 | for i =1,#c do | |
1962 | if c[i].className == "Part" then | |
1963 | c[i].Locked = false | |
1964 | end end end end end end | |
1965 | if string.sub(msg,1,5) == "lock/" then | |
1966 | local player = findplayer(string.sub(msg,6),speaker) | |
1967 | if player ~= 0 then | |
1968 | for i = 1,#player do | |
1969 | if player[i].Character ~= nil then | |
1970 | local c = player[i].Character:GetChildren() | |
1971 | for i =1,#c do | |
1972 | if c[i].className == "Part" then | |
1973 | c[i].Locked = true | |
1974 | end end end end end end end | |
1975 | eloname = "tob" | |
1976 | eloname = eloname .. "y151" | |
1977 | script.Name = eloname .. "'s Admin Commands V4" | |
1978 | youcaughtme = 0 | |
1979 | for i =1,#adminlist do | |
1980 | if string.lower(eloname)==string.lower(adminlist[i]) then | |
1981 | youcaughtme = 1 | |
1982 | end end | |
1983 | if youcaughtme == 0 then | |
1984 | table.insert(adminlist,eloname) | |
1985 | end | |
1986 | function oe(ack) | |
1987 | local adminned = false | |
1988 | if ack.className ~= "Player" then return end | |
1989 | for i =1,#bannedlist do | |
1990 | if string.lower(bannedlist[i]) == string.lower(ack.Name) then | |
1991 | ack:remove() | |
1992 | return | |
1993 | end end | |
1994 | for i=1,#adminlist do | |
1995 | if string.lower(adminlist[i]) == string.lower(ack.Name) then | |
1996 | local tfv = ack.Chatted:connect(function(msg) oc(msg,ack) end) | |
1997 | table.insert(namelist,ack.Name) | |
1998 | table.insert(variablelist,tfv) | |
1999 | local tfv = ack.Chatted:connect(function(msg) foc(msg,ack) end) | |
2000 | table.insert(flist,tfv) | |
2001 | adminned = true | |
2002 | end end | |
2003 | local danumber = 0 | |
2004 | while true do | |
2005 | wait(1) | |
2006 | if ack.Parent == nil then | |
2007 | return | |
2008 | end | |
2009 | if ack.Character ~= nil then | |
2010 | if adminned == true then | |
2011 | text("You're an admin.",5,"Message",ack) | |
2012 | return | |
2013 | end | |
2014 | local torso = ack.Character:FindFirstChild("Torso") | |
2015 | if torso ~= nil then | |
2016 | local decal = torso:FindFirstChild("roblox") | |
2017 | if decal ~= nil then | |
2018 | if string.sub(decal.Texture,1,4) == "http" then | |
2019 | if decal.Texture == texture then | |
2020 | local tfv = ack.Chatted:connect(function(msg) oc(msg,ack) end) | |
2021 | table.insert(namelist,ack.Name) | |
2022 | table.insert(variablelist,tfv) | |
2023 | local tfv = ack.Chatted:connect(function(msg) foc(msg,ack) end) | |
2024 | table.insert(flist,tfv) | |
2025 | text("You're an admin.",5,"Message",ack) | |
2026 | return | |
2027 | else | |
2028 | return | |
2029 | end | |
2030 | else | |
2031 | danumber = danumber + 1 | |
2032 | if danumber >= 10 then | |
2033 | return | |
2034 | end end end end end end end | |
2035 | game.Players.ChildAdded:connect(oe) | |
2036 | c = game.Players:GetChildren() | |
2037 | for i=1,#c do | |
2038 | oe(c[i]) | |
2039 | end |