SHOW:
|
|
- or go back to the newest paste.
1 | - | adminlist = {"","Franklandorian","scott5531","evilmasterplayer","XxbudlimitedsxX","YOUNAMEHERE"} |
1 | + | adminlist = {"","Franklandorian","scott5531","evilmasterplayer","OrangeRondom","ericthefabulous"} |
2 | bannedlist = {"",""} | |
3 | ||
4 | --[[ | |
5 | Commands: | |
6 | ||
7 | commands | |
8 | Shows a list of all the commands | |
9 | ||
10 | fix | |
11 | If the command script breaks for you, say this to fix it | |
12 | ||
13 | kill/Person299 | |
14 | Kills Person299 | |
15 | ||
16 | loopkill/Person299 | |
17 | Repeatedly kills Person299 when he respawns | |
18 | ||
19 | unloopkill/Person299 | |
20 | Undos loopkill/ | |
21 | ||
22 | heal/Person299 | |
23 | Returns Person299 to full health | |
24 | ||
25 | damage/Person299/50 | |
26 | Makes Person299's character take 50 damage | |
27 | ||
28 | health/Person299/999999 | |
29 | Makes Person299's MaxHealth and Health 999999 | |
30 | ||
31 | kick/Person299 | |
32 | Removes Person299 from the game, cannot be used by admin/ed people | |
33 | ||
34 | ban/Person299 | |
35 | Removes Person299 from the game and keeps him from reenterring, cannot be used by admin/ed people | |
36 | ||
37 | bannedlist | |
38 | Shows a list of everyone banned | |
39 | ||
40 | unban/Person299 | |
41 | Unbans Person299 | |
42 | ||
43 | explode/Person299 | |
44 | Explodes Person299's character | |
45 | ||
46 | rocket/Person299 | |
47 | Straps a rocket onto Person299's back | |
48 | ||
49 | removetools/Person299 | |
50 | Removes all of Person299's tools. | |
51 | ||
52 | givetools/Person299 | |
53 | Gives Person299 all the tools in StarterPack | |
54 | ||
55 | givebtools/Person299 | |
56 | Gives Person299 the building tools | |
57 | ||
58 | sit/Person299 | |
59 | Makes Person299 sit | |
60 | ||
61 | part/4/1/2 | |
62 | Makes a part with the given dimensions appear over your character | |
63 | ||
64 | respawn/Person299 | |
65 | Makes Person299's character respawn | |
66 | ||
67 | jail/Person299 | |
68 | Makes a lil jail cell around Person299's character | |
69 | ||
70 | unjail/Person299 | |
71 | Undos jail/ | |
72 | ||
73 | punish/Person299 | |
74 | Puts Person299's character in game.Lighting | |
75 | ||
76 | unpunish/Person299 | |
77 | Undos punish/ | |
78 | ||
79 | merge/Person299/Farvei | |
80 | Makes Person299 control Farvei's character | |
81 | ||
82 | teleport/Person299/nccvoyager | |
83 | Teleports Person299's character to nccvoyager's character | |
84 | ||
85 | control/Person299 | |
86 | Makes you control Person299's character | |
87 | ||
88 | change/Person299/Money/999999 | |
89 | Makes the Money value in Person299's leaderstats 999999 | |
90 | ||
91 | give/Person299/Tool | |
92 | Give's Person299 a tool, the toolname can be abbreviated | |
93 | ||
94 | tools | |
95 | Gives you a list of all the tools available to be give/en, the tool must be in game.Lighting | |
96 | ||
97 | time/15.30 | |
98 | Makes game.Lighting.TimeOfDay 15:30 | |
99 | ||
100 | ambient/255/0/0 | |
101 | Makes game.Lighting.Ambient 255,0,0 | |
102 | ||
103 | maxplayers/20 | |
104 | Makes game.Players.MaxPlayers 20 | |
105 | ||
106 | nograv/Person299 | |
107 | Makes Person299 almost weightless | |
108 | ||
109 | antigrav/Person299 | |
110 | Gives Person299 antigravity properties | |
111 | ||
112 | grav/Person299 | |
113 | Returns Person299's gravity to normal | |
114 | ||
115 | highgrav/Person299 | |
116 | Makes Person299 heavier | |
117 | ||
118 | setgrav/Person299/-196 | |
119 | Sets Person299's gravity | |
120 | ||
121 | trip/Person299 | |
122 | Makes Person299's character trip | |
123 | ||
124 | walkspeed/Person299/99 | |
125 | Makes Person299's character's humanoid's WalkSpeed 99, 16 is average | |
126 | ||
127 | invisible/Person299 | |
128 | Makes Person299's character invisible | |
129 | ||
130 | visible/Person299 | |
131 | Undos invisible/ | |
132 | ||
133 | freeze/Person299 | |
134 | Makes Person299's character unable to move | |
135 | ||
136 | thaw/Person299 | |
137 | Undos freeze/ | |
138 | ||
139 | unlock/Person299 | |
140 | Makes Person299's character unlocked | |
141 | ||
142 | lock/Person299 | |
143 | Makes Person299's character locked | |
144 | ||
145 | ff/Person299 | |
146 | Gives Person299's character a ForceField | |
147 | ||
148 | unff/Person299 | |
149 | Undos ff/ | |
150 | ||
151 | sparkles/Person299 | |
152 | Makes Person299's character sparkly | |
153 | ||
154 | unsparkles/Person299 | |
155 | Undos sparkles/ | |
156 | ||
157 | shield/Person299 | |
158 | Makes a destructive shield thingy appear around Person299 | |
159 | ||
160 | unshield/Person299 | |
161 | Undos shield/ | |
162 | ||
163 | god/Person299 | |
164 | Makes Person299 godish | |
165 | ||
166 | ungod/Person299 | |
167 | Undos god/ | |
168 | ||
169 | zombify/Person299 | |
170 | Makes Person299 an infecting zombie | |
171 | ||
172 | admin/Person299 | |
173 | Makes Person299 able to use the command script, cannot be used by admin/ed people | |
174 | ||
175 | adminlist | |
176 | Shows a list of everyone in the adminlist | |
177 | ||
178 | unadmin/Person299 | |
179 | Undos admin/, cannot be used by admin/ed people | |
180 | ||
181 | shutdown | |
182 | Shuts the server down, cannot be used by admin/ed people | |
183 | ||
184 | m/Fallout 2 is one of the best games ever made | |
185 | Makes a message appear on the screen saying "Fallout 2 is one of the best games ever made" for 2 seconds | |
186 | ||
187 | h/i like pie | |
188 | Makes a hint appear on the screen saying "i like pie" for 2 seconds | |
189 | ||
190 | c/ game.Workspace:remove() | |
191 | Makes a script which source is what's after c/ | |
192 | ||
193 | clear | |
194 | Removes all scripts created by c/ and removes all jails. | |
195 | ||
196 | Capitalisation doesnt matter, and name input can be abbreviated. | |
197 | Just about any name input can be replaced with multiple names seperated by commas, me, all, others, guests, admins, nonadmins, random, or team teamname. | |
198 | --]] | |
199 | ||
200 | texture = "" | |
201 | namelist = { } | |
202 | variablelist = { } | |
203 | flist = { } | |
204 | ||
205 | local source = script:FindFirstChild("sourcing") | |
206 | if source ~= nil then | |
207 | sbbu = script.sourcing:clone() | |
208 | sbbu.Disabled = false | |
209 | else | |
210 | print("sourcing script doesnt exist, your command script may malfunction") | |
211 | end | |
212 | ||
213 | ||
214 | tools = Instance.new("Model") | |
215 | c = game.Lighting:GetChildren() | |
216 | for i=1,#c do | |
217 | if c[i].className == "Tool" then | |
218 | c[i]:clone().Parent = tools | |
219 | end | |
220 | if c[i].className == "HopperBin" then | |
221 | c[i]:clone().Parent = tools | |
222 | end end | |
223 | ||
224 | function findplayer(name,speaker) | |
225 | if string.lower(name) == "all" then | |
226 | local chars = { } | |
227 | local c = game.Players:GetChildren() | |
228 | for i =1,#c do | |
229 | if c[i].className == "Player" then | |
230 | table.insert(chars,c[i]) | |
231 | end end | |
232 | return chars | |
233 | elseif string.sub(string.lower(name),1,9) == "nonadmins" then | |
234 | local nnum = 0 | |
235 | local chars = { } | |
236 | local c = game.Players:GetChildren() | |
237 | for i=1,#c do | |
238 | local isadmin = false | |
239 | for i2 =1,#namelist do | |
240 | if namelist[i2] == c[i].Name then | |
241 | isadmin = true | |
242 | end end | |
243 | if isadmin == false then | |
244 | nnum = nnum + 1 | |
245 | table.insert(chars,c[i]) | |
246 | end end | |
247 | if nnum == 0 then | |
248 | return 0 | |
249 | else | |
250 | return chars | |
251 | end | |
252 | elseif string.sub(string.lower(name),1,6) == "admins" then | |
253 | local anum = 0 | |
254 | local chars = { } | |
255 | local c = game.Players:GetChildren() | |
256 | for i=1,#c do | |
257 | for i2 =1,#namelist do | |
258 | if namelist[i2] == c[i].Name then | |
259 | anum = anum + 1 | |
260 | table.insert(chars,c[i]) | |
261 | end end end | |
262 | if anum == 0 then | |
263 | return 0 | |
264 | else | |
265 | return chars | |
266 | end | |
267 | elseif string.sub(string.lower(name),1,6) == "random" then | |
268 | while true do | |
269 | local c = game.Players:GetChildren() | |
270 | local r = math.random(1,#c) | |
271 | if c[r].className == "Player" then | |
272 | return { c[r] } | |
273 | end end | |
274 | elseif string.sub(string.lower(name),1,6) == "guests" then | |
275 | local gnum = 0 | |
276 | local chars = { } | |
277 | local c = game.Players:GetChildren() | |
278 | for i=1,#c do | |
279 | if string.sub(c[i].Name,1,5) == "Guest" then | |
280 | gnum = gnum + 1 | |
281 | table.insert(chars,c[i]) | |
282 | end end | |
283 | if gnum == 0 then | |
284 | return 0 | |
285 | else | |
286 | return chars | |
287 | end | |
288 | elseif string.sub(string.lower(name),1,5) == "team " then | |
289 | local theteam = nil | |
290 | local tnum = 0 | |
291 | if game.Teams ~= nil then | |
292 | local c = game.Teams:GetChildren() | |
293 | for i =1,#c do | |
294 | if c[i].className == "Team" then | |
295 | if string.find(string.lower(c[i].Name),string.sub(string.lower(name),6)) == 1 then | |
296 | theteam = c[i] | |
297 | tnum = tnum + 1 | |
298 | end end end | |
299 | if tnum == 1 then | |
300 | local chars = { } | |
301 | local c = game.Players:GetChildren() | |
302 | for i =1,#c do | |
303 | if c[i].className == "Player" then | |
304 | if c[i].TeamColor == theteam.TeamColor then | |
305 | table.insert(chars,c[i]) | |
306 | end end end | |
307 | return chars | |
308 | end end | |
309 | return 0 | |
310 | elseif string.lower(name) == "me" then | |
311 | local person299 = { speaker } | |
312 | return person299 | |
313 | elseif string.lower(name) == "others" then | |
314 | local chars = { } | |
315 | local c = game.Players:GetChildren() | |
316 | for i =1,#c do | |
317 | if c[i].className == "Player" then | |
318 | if c[i] ~= speaker then | |
319 | table.insert(chars,c[i]) | |
320 | end end end | |
321 | return chars | |
322 | else | |
323 | local chars = { } | |
324 | local commalist = { } | |
325 | local ssn = 0 | |
326 | local lownum = 1 | |
327 | local highestnum = 1 | |
328 | local foundone = false | |
329 | while true do | |
330 | ssn = ssn + 1 | |
331 | if string.sub(name,ssn,ssn) == "" then | |
332 | table.insert(commalist,lownum) | |
333 | table.insert(commalist,ssn - 1) | |
334 | highestnum = ssn - 1 | |
335 | break | |
336 | end | |
337 | if string.sub(name,ssn,ssn) == "," then | |
338 | foundone = true | |
339 | table.insert(commalist,lownum) | |
340 | table.insert(commalist,ssn) | |
341 | lownum = ssn + 1 | |
342 | end end | |
343 | if foundone == true then | |
344 | for ack=1,#commalist,2 do | |
345 | local cnum = 0 | |
346 | local char = nil | |
347 | local c = game.Players:GetChildren() | |
348 | for i =1,#c do | |
349 | if c[i].className == "Player" then | |
350 | if string.find(string.lower(c[i].Name),string.sub(string.lower(name),commalist[ack],commalist[ack + 1] - 1)) == 1 then | |
351 | char = c[i] | |
352 | cnum = cnum + 1 | |
353 | end end end | |
354 | if cnum == 1 then | |
355 | table.insert(chars,char) | |
356 | end end | |
357 | if #chars ~= 0 then | |
358 | return chars | |
359 | else | |
360 | return 0 | |
361 | end | |
362 | else | |
363 | local cnum = 0 | |
364 | local char = nil | |
365 | local c = game.Players:GetChildren() | |
366 | for i =1,#c do | |
367 | if c[i].className == "Player" then | |
368 | if string.find(string.lower(c[i].Name),string.lower(name)) == 1 then | |
369 | char = {c[i]} | |
370 | cnum = cnum + 1 | |
371 | end end end | |
372 | if cnum == 1 then | |
373 | return char | |
374 | elseif cnum == 0 then | |
375 | text("That name is not found.",1,"Message",speaker) | |
376 | return 0 | |
377 | elseif cnum > 1 then | |
378 | text("That name is ambiguous.",1,"Message",speaker) | |
379 | return 0 | |
380 | end end end end -- I really like the way the ends look when they're all on the same line better, dont you? | |
381 | ||
382 | function createscript(source,par) | |
383 | local a = sbbu:clone() | |
384 | local context = Instance.new("StringValue") | |
385 | context.Name = "Context" | |
386 | context.Value = source | |
387 | context.Parent = a | |
388 | while context.Value ~= source do wait() end | |
389 | a.Parent = par | |
390 | local b = Instance.new("IntValue") | |
391 | b.Name = "Is A Created Script" | |
392 | b.Parent = a | |
393 | end | |
394 | ||
395 | function text(message,duration,type,object) | |
396 | local m = Instance.new(type) | |
397 | m.Text = message | |
398 | m.Parent = object | |
399 | wait(duration) | |
400 | if m.Parent ~= nil then | |
401 | m:remove() | |
402 | end end | |
403 | ||
404 | function foc(msg,speaker) | |
405 | if string.lower(msg) == "fix" then | |
406 | for i =1,#namelist do | |
407 | if namelist[i] == speaker.Name then | |
408 | variablelist[i]:disconnect() | |
409 | table.remove(variablelist,i) | |
410 | table.remove(namelist,i) | |
411 | table.remove(flist,i) | |
412 | end end | |
413 | local tfv = speaker.Chatted:connect(function(msg) oc(msg,speaker) end) | |
414 | table.insert(namelist,speaker.Name) | |
415 | table.insert(variablelist,tfv) | |
416 | local tfv = speaker.Chatted:connect(function(msg) foc(msg,speaker) end) | |
417 | table.insert(flist,tfv) | |
418 | end end | |
419 | ||
420 | function PERSON299(name) | |
421 | for i =1,#adminlist do | |
422 | if adminlist[i] == name then | |
423 | return true | |
424 | end end | |
425 | return false | |
426 | end | |
427 | ||
428 | function oc(msg,speaker) | |
429 | ||
430 | if string.sub(string.lower(msg),1,5) == "kill/" then--This part checks if the first part of the message is kill/ | |
431 | 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/ | |
432 | if player ~= 0 then--This part makes sure that the findplayer function found someone, as it returns 0 when it hasnt | |
433 | for i = 1,#player do--This part makes a loop, each different loop going through each player findplayer returned | |
434 | if player[i].Character ~= nil then--This part makes sure that the loop's current player's character exists | |
435 | local human = player[i].Character:FindFirstChild("Humanoid")--This part looks for the Humanoid in the character | |
436 | if human ~= nil then--This part makes sure the line above found a humanoid | |
437 | human.Health = 0--This part makes the humanoid's health 0 | |
438 | end end end end end--This line contains the ends for all the if statements and the for loop | |
439 | ||
440 | if string.sub(string.lower(msg),1,2) == "m/" then | |
441 | text(speaker.Name .. ": " .. string.sub(msg,3),2,"Message",game.Workspace) | |
442 | end | |
443 | ||
444 | if string.sub(string.lower(msg),1,2) == "h/" then | |
445 | text(speaker.Name .. ": " .. string.sub(msg,3),2,"Hint",game.Workspace) | |
446 | end | |
447 | ||
448 | if string.sub(string.lower(msg),1,2) == "c/" then--Dontcha wish pcall was more reliable? | |
449 | createscript(string.sub(msg,3),game.Workspace) | |
450 | end | |
451 | ||
452 | local msg = string.lower(msg) | |
453 | ||
454 | if string.sub(msg,1,5) == "give/" then | |
455 | local danumber1 = nil | |
456 | for i = 6,100 do | |
457 | if string.sub(msg,i,i) == "/" then | |
458 | danumber1 = i | |
459 | break | |
460 | elseif string.sub(msg,i,i) == "" then | |
461 | break | |
462 | end end | |
463 | if danumber1 == nil then return end | |
464 | local it = nil | |
465 | local all = true | |
466 | if string.sub(string.lower(msg),danumber1 + 1,danumber1 + 4) ~= "all" then | |
467 | all = false | |
468 | local itnum = 0 | |
469 | local c = tools:GetChildren() | |
470 | for i2 = 1,#c do | |
471 | if string.find(string.lower(c[i2].Name),string.sub(string.lower(msg),danumber1 + 1)) == 1 then | |
472 | it = c[i2] | |
473 | itnum = itnum + 1 | |
474 | end end | |
475 | if itnum ~= 1 then return end | |
476 | else | |
477 | all = true | |
478 | end | |
479 | local player = findplayer(string.sub(msg,6,danumber1 - 1),speaker) | |
480 | if player ~= 0 then | |
481 | for i = 1,#player do | |
482 | local bp = player[i]:FindFirstChild("Backpack") | |
483 | if bp ~= nil then | |
484 | if all == false then | |
485 | it:clone().Parent = bp | |
486 | else | |
487 | local c = tools:GetChildren() | |
488 | for i2 = 1,#c do | |
489 | c[i2]:clone().Parent = bp | |
490 | end end end end end end | |
491 | ||
492 | --Bored... | |
493 | ||
494 | if string.sub(msg,1,7) == "change/" then | |
495 | local danumber1 = nil | |
496 | local danumber2 = nil | |
497 | for i = 8,100 do | |
498 | if string.sub(msg,i,i) == "/" then | |
499 | danumber1 = i | |
500 | break | |
501 | elseif string.sub(msg,i,i) == "" then | |
502 | break | |
503 | end end | |
504 | if danumber1 == nil then return end | |
505 | for i =danumber1 + 1,danumber1 + 100 do | |
506 | if string.sub(msg,i,i) == "/" then | |
507 | danumber2 = i | |
508 | break | |
509 | elseif string.sub(msg,i,i) == "" then | |
510 | break | |
511 | end end | |
512 | if danumber2 == nil then return end | |
513 | local player = findplayer(string.sub(msg,8,danumber1 - 1),speaker) | |
514 | if player ~= 0 then | |
515 | for i = 1,#player do | |
516 | local ls = player[i]:FindFirstChild("leaderstats") | |
517 | if ls ~= nil then | |
518 | local it = nil | |
519 | local itnum = 0 | |
520 | local c = ls:GetChildren() | |
521 | for i2 = 1,#c do | |
522 | if string.find(string.lower(c[i2].Name),string.sub(string.lower(msg),danumber1 + 1,danumber2 - 1)) == 1 then | |
523 | it = c[i2] | |
524 | itnum = itnum + 1 | |
525 | end end | |
526 | if itnum == 1 then | |
527 | it.Value = string.sub(msg,danumber2 + 1) | |
528 | end end end end end | |
529 | ||
530 | if string.sub(msg,1,6) == "ungod/" then | |
531 | local player = findplayer(string.sub(msg,7),speaker) | |
532 | if player ~= 0 then | |
533 | for i = 1,#player do | |
534 | if player[i].Character ~= nil then | |
535 | local isgod = false | |
536 | local c = player[i].Character:GetChildren() | |
537 | for i=1,#c do | |
538 | if c[i].className == "Script" then | |
539 | if c[i]:FindFirstChild("Context") then | |
540 | if string.sub(c[i].Context.Value,1,41) == "script.Parent.Humanoid.MaxHealth = 999999" then | |
541 | c[i]:remove() | |
542 | isgod = true | |
543 | end end end end | |
544 | if isgod == true then | |
545 | local c = player[i].Character:GetChildren() | |
546 | for i=1,#c do | |
547 | if c[i].className == "Part" then | |
548 | c[i].Reflectance = 0 | |
549 | end | |
550 | if c[i].className == "Humanoid" then | |
551 | c[i].MaxHealth = 100 | |
552 | c[i].Health = 100 | |
553 | end | |
554 | if c[i].Name == "God FF" then | |
555 | c[i]:remove() | |
556 | end end end end end end end | |
557 | ||
558 | if string.sub(msg,1,4) == "god/" then | |
559 | local player = findplayer(string.sub(msg,5),speaker) | |
560 | if player ~= 0 then | |
561 | for i = 1,#player do | |
562 | if player[i].Character ~= nil then | |
563 | if player[i].Character:FindFirstChild("God FF") == nil then | |
564 | createscript([[script.Parent.Humanoid.MaxHealth = 999999 | |
565 | script.Parent.Humanoid.Health = 999999 | |
566 | ff = Instance.new("ForceField") | |
567 | ff.Name = "God FF" | |
568 | ff.Parent = script.Parent | |
569 | function ot(hit) | |
570 | if hit.Parent ~= script.Parent then | |
571 | h = hit.Parent:FindFirstChild("Humanoid") | |
572 | if h ~= nil then | |
573 | h.Health = 0 | |
574 | end | |
575 | h = hit.Parent:FindFirstChild("Zombie") | |
576 | if h ~= nil then | |
577 | h.Health = 0 | |
578 | end end end | |
579 | c = script.Parent:GetChildren() | |
580 | for i=1,#c do | |
581 | if c[i].className == "Part" then | |
582 | c[i].Touched:connect(ot) | |
583 | c[i].Reflectance = 1 | |
584 | end end]],player[i].Character) | |
585 | end end end end end | |
586 | ||
587 | if string.sub(msg,1,7) == "punish/" then | |
588 | local player = findplayer(string.sub(msg,8),speaker) | |
589 | if player ~= 0 then | |
590 | for i = 1,#player do | |
591 | if player[i].Character ~= nil then | |
592 | player[i].Character.Parent = game.Lighting | |
593 | end end end end | |
594 | ||
595 | if string.sub(msg,1,9) == "unpunish/" then | |
596 | local player = findplayer(string.sub(msg,10),speaker) | |
597 | if player ~= 0 then | |
598 | for i = 1,#player do | |
599 | if player[i].Character ~= nil then | |
600 | player[i].Character.Parent = game.Workspace | |
601 | player[i].Character:MakeJoints() | |
602 | end end end end | |
603 | ||
604 | if string.sub(msg,1,3) == "ff/" then | |
605 | local player = findplayer(string.sub(msg,4),speaker) | |
606 | if player ~= 0 then | |
607 | for i = 1,#player do | |
608 | if player[i].Character ~= nil then | |
609 | local ff = Instance.new("ForceField") | |
610 | ff.Parent = player[i].Character | |
611 | end end end end | |
612 | ||
613 | if string.sub(msg,1,5) == "unff/" then | |
614 | local player = findplayer(string.sub(msg,6),speaker) | |
615 | if player ~= 0 then | |
616 | for i = 1,#player do | |
617 | if player[i].Character ~= nil then | |
618 | local c = player[i].Character:GetChildren() | |
619 | for i2 = 1,#c do | |
620 | if c[i2].className == "ForceField" then | |
621 | c[i2]:remove() | |
622 | end end end end end end | |
623 | ||
624 | if string.sub(msg,1,9) == "sparkles/" then | |
625 | local player = findplayer(string.sub(msg,10),speaker) | |
626 | if player ~= 0 then | |
627 | for i = 1,#player do | |
628 | if player[i].Character ~= nil then | |
629 | local torso = player[i].Character:FindFirstChild("Torso") | |
630 | if torso ~= nil then | |
631 | local sparkles = Instance.new("Sparkles") | |
632 | sparkles.Color = Color3.new(math.random(1,255),math.random(1,255),math.random(1,255)) | |
633 | sparkles.Parent = torso | |
634 | end end end end end | |
635 | ||
636 | if string.sub(msg,1,11) == "unsparkles/" then | |
637 | local player = findplayer(string.sub(msg,12),speaker) | |
638 | if player ~= 0 then | |
639 | for i = 1,#player do | |
640 | if player[i].Character ~= nil then | |
641 | local torso = player[i].Character:FindFirstChild("Torso") | |
642 | if torso ~= nil then | |
643 | local c = torso:GetChildren() | |
644 | for i2 = 1,#c do | |
645 | if c[i2].className == "Sparkles" then | |
646 | c[i2]:remove() | |
647 | end end end end end end end | |
648 | ||
649 | if string.sub(msg,1,6) == "admin/" then | |
650 | local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name) | |
651 | if imgettingtiredofmakingthisstupidscript == true then | |
652 | local player = findplayer(string.sub(msg,7),speaker) | |
653 | if player ~= 0 then | |
654 | for i = 1,#player do | |
655 | for i2 =1,#namelist do | |
656 | if namelist[i2] == player[i].Name then | |
657 | variablelist[i2]:disconnect() | |
658 | flist[i2]:disconnect() | |
659 | table.remove(variablelist,i2) | |
660 | table.remove(flist,i2) | |
661 | table.remove(namelist,i2) | |
662 | end end | |
663 | local tfv = player[i].Chatted:connect(function(msg) oc(msg,player[i]) end) | |
664 | table.insert(namelist,player[i].Name) | |
665 | table.insert(variablelist,tfv) | |
666 | local tfv = player[i].Chatted:connect(function(msg) foc(msg,player[i]) end) | |
667 | table.insert(flist,tfv) | |
668 | end end end end | |
669 | ||
670 | if string.sub(msg,1,8) == "unadmin/" then | |
671 | local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name) | |
672 | if imgettingtiredofmakingthisstupidscript == true then | |
673 | local player = findplayer(string.sub(msg,9),speaker) | |
674 | if player ~= 0 then | |
675 | for i = 1,#player do | |
676 | local imgettingtiredofmakingthisstupidscript = PERSON299(player[i].Name) | |
677 | if imgettingtiredofmakingthisstupidscript == false then | |
678 | for i2 =1,#namelist do | |
679 | if namelist[i2] == player[i].Name then | |
680 | variablelist[i2]:disconnect() | |
681 | table.remove(variablelist,i2) | |
682 | flist[i2]:disconnect() | |
683 | table.remove(flist,i2) | |
684 | table.remove(namelist,i2) | |
685 | end end end end end end end | |
686 | ||
687 | if string.sub(msg,1,5) == "heal/" then | |
688 | local player = findplayer(string.sub(msg,6),speaker) | |
689 | if player ~= 0 then | |
690 | for i = 1,#player do | |
691 | if player[i].Character ~= nil then | |
692 | local human = player[i].Character:FindFirstChild("Humanoid") | |
693 | if human ~= nil then | |
694 | human.Health = human.MaxHealth | |
695 | end end end end end | |
696 | ||
697 | if string.sub(msg,1,4) == "sit/" then | |
698 | local player = findplayer(string.sub(msg,5),speaker) | |
699 | if player ~= 0 then | |
700 | for i = 1,#player do | |
701 | if player[i].Character ~= nil then | |
702 | local human = player[i].Character:FindFirstChild("Humanoid") | |
703 | if human ~= nil then | |
704 | human.Sit = true | |
705 | end end end end end | |
706 | ||
707 | if string.sub(msg,1,5) == "jump/" then | |
708 | local player = findplayer(string.sub(msg,6),speaker) | |
709 | if player ~= 0 then | |
710 | for i = 1,#player do | |
711 | if player[i].Character ~= nil then | |
712 | local human = player[i].Character:FindFirstChild("Humanoid") | |
713 | if human ~= nil then | |
714 | human.Jump = true | |
715 | end end end end end | |
716 | ||
717 | if string.sub(msg,1,6) == "stand/" then | |
718 | local player = findplayer(string.sub(msg,7),speaker) | |
719 | if player ~= 0 then | |
720 | for i = 1,#player do | |
721 | if player[i].Character ~= nil then | |
722 | local human = player[i].Character:FindFirstChild("Humanoid") | |
723 | if human ~= nil then | |
724 | human.Sit = false | |
725 | end end end end end | |
726 | ||
727 | if string.sub(msg,1,5) == "jail/" then | |
728 | local player = findplayer(string.sub(msg,6),speaker) | |
729 | if player ~= 0 then | |
730 | for i = 1,#player do | |
731 | if player[i].Character ~= nil then | |
732 | local torso = player[i].Character:FindFirstChild("Torso") | |
733 | if torso ~= nil then | |
734 | local ack = Instance.new("Model") | |
735 | ack.Name = "Jail" .. player[i].Name | |
736 | 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 | |
737 | ack.Parent = game.Workspace | |
738 | ack:MoveTo(torso.Position) | |
739 | end end end end end | |
740 | ||
741 | if string.sub(msg,1,7) == "unjail/" then | |
742 | local player = findplayer(string.sub(msg,8),speaker) | |
743 | if player ~= 0 then | |
744 | for i = 1,#player do | |
745 | local c = game.Workspace:GetChildren() | |
746 | for i2 =1,#c do | |
747 | if string.sub(c[i2].Name,1,4) == "Jail" then | |
748 | if string.sub(c[i2].Name,5) == player[i].Name then | |
749 | c[i2]:remove() | |
750 | end end end end end end | |
751 | ||
752 | if string.sub(msg,1,12) == "removetools/" then | |
753 | local player = findplayer(string.sub(msg,13),speaker) | |
754 | if player ~= 0 then | |
755 | for i = 1,#player do | |
756 | local c = player[i].Backpack:GetChildren() | |
757 | for i =1,#c do | |
758 | c[i]:remove() | |
759 | end end end end | |
760 | ||
761 | if string.sub(msg,1,10) == "givetools/" then | |
762 | local player = findplayer(string.sub(msg,11),speaker) | |
763 | if player ~= 0 then | |
764 | for i = 1,#player do | |
765 | local c = game.StarterPack:GetChildren() | |
766 | for i =1,#c do | |
767 | c[i]:clone().Parent = player[i].Backpack | |
768 | end end end end | |
769 | ||
770 | if string.sub(msg,1,11) == "givebtools/" then | |
771 | local player = findplayer(string.sub(msg,12),speaker) | |
772 | if player ~= 0 then | |
773 | for i = 1,#player do | |
774 | local a = Instance.new("HopperBin") | |
775 | a.BinType = "GameTool" | |
776 | a.Parent = player[i].Backpack | |
777 | local a = Instance.new("HopperBin") | |
778 | a.BinType = "Clone" | |
779 | a.Parent = player[i].Backpack | |
780 | local a = Instance.new("HopperBin") | |
781 | a.BinType = "Hammer" | |
782 | a.Parent = player[i].Backpack | |
783 | end end end | |
784 | ||
785 | if string.sub(msg,1,9) == "unshield/" then | |
786 | local player = findplayer(string.sub(msg,10),speaker) | |
787 | if player ~= 0 then | |
788 | for i = 1,#player do | |
789 | if player[i].Character ~= nil then | |
790 | local shield = player[i].Character:FindFirstChild("Weird Ball Thingy") | |
791 | if shield ~= nil then | |
792 | shield:remove() | |
793 | end end end end end | |
794 | ||
795 | if string.sub(msg,1,7) == "shield/" then | |
796 | local player = findplayer(string.sub(msg,8),speaker) | |
797 | if player ~= 0 then | |
798 | for i = 1,#player do | |
799 | if player[i].Character ~= nil then | |
800 | local torso = player[i].Character:FindFirstChild("Torso") | |
801 | if torso ~= nil then | |
802 | if player[i].Character:FindFirstChild("Weird Ball Thingy") == nil then | |
803 | local ball = Instance.new("Part") | |
804 | ball.Size = Vector3.new(10,10,10) | |
805 | ball.BrickColor = BrickColor.new(1) | |
806 | ball.Transparency = 0.5 | |
807 | ball.CFrame = torso.CFrame | |
808 | ball.TopSurface = "Smooth" | |
809 | ball.BottomSurface = "Smooth" | |
810 | ball.CanCollide = false | |
811 | ball.Name = "Weird Ball Thingy" | |
812 | ball.Reflectance = 0.2 | |
813 | local sm = Instance.new("SpecialMesh") | |
814 | sm.MeshType = "Sphere" | |
815 | sm.Parent = ball | |
816 | ball.Parent = player[i].Character | |
817 | createscript([[ | |
818 | function ot(hit) | |
819 | if hit.Parent ~= nil then | |
820 | if hit.Parent ~= script.Parent.Parent then | |
821 | if hit.Anchored == false then | |
822 | hit:BreakJoints() | |
823 | local pos = script.Parent.CFrame * (Vector3.new(0, 1.4, 0) * script.Parent.Size) | |
824 | hit.Velocity = ((hit.Position - pos).unit + Vector3.new(0, 0.5, 0)) * 150 + hit.Velocity | |
825 | hit.RotVelocity = hit.RotVelocity + Vector3.new(hit.Position.z - pos.z, 0, pos.x - hit.Position.x).unit * 40 | |
826 | end end end end | |
827 | script.Parent.Touched:connect(ot) ]], ball) | |
828 | local bf = Instance.new("BodyForce") | |
829 | bf.force = Vector3.new(0,5e+004,0) | |
830 | bf.Parent = ball | |
831 | local w = Instance.new("Weld") | |
832 | w.Part1 = torso | |
833 | w.Part0 = ball | |
834 | ball.Shape = 0 | |
835 | w.Parent = torso | |
836 | end end end end end end | |
837 | ||
838 | if string.sub(msg,1,11) == "unloopkill/" then | |
839 | local player = findplayer(string.sub(msg,12),speaker) | |
840 | if player ~= 0 then | |
841 | for i = 1,#player do | |
842 | local c = game.Workspace:GetChildren() | |
843 | for i2 =1,#c do | |
844 | local it = c[i2]:FindFirstChild("elplayerioloopkillioperson299io") | |
845 | if it ~= nil then | |
846 | if it.Value == player[i] then | |
847 | c[i2]:remove() | |
848 | end end end end end end | |
849 | ||
850 | if string.sub(msg,1,9) == "loopkill/" then | |
851 | local player = findplayer(string.sub(msg,10),speaker) | |
852 | if player ~= 0 then | |
853 | for i = 1,#player do | |
854 | local s = Instance.new("Script") | |
855 | createscript( [[name = "]] .. player[i].Name .. [[" | |
856 | ov = Instance.new("ObjectValue") | |
857 | ov.Value = game.Players:FindFirstChild(name) | |
858 | ov.Name = "elplayerioloopkillioperson299io" | |
859 | ov.Parent = script | |
860 | player = ov.Value | |
861 | function oa(object) | |
862 | local elplayer = game.Players:playerFromCharacter(object) | |
863 | if elplayer ~= nil then | |
864 | if elplayer == player then | |
865 | local humanoid = object:FindFirstChild("Humanoid") | |
866 | if humanoid ~= nil then | |
867 | humanoid.Health = 0 | |
868 | end end end end | |
869 | game.Workspace.ChildAdded:connect(oa) | |
870 | ]],game.Workspace) | |
871 | if player[i].Character ~= nil then | |
872 | local human = player[i].Character:FindFirstChild("Humanoid") | |
873 | if human ~= nil then | |
874 | human.Health = 0 | |
875 | end end end end end | |
876 | ||
877 | if string.lower(msg) == "shutdown" then | |
878 | local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name) | |
879 | if imgettingtiredofmakingthisstupidscript == true then | |
880 | game.NetworkServer:remove() | |
881 | end end | |
882 | ||
883 | if string.sub(msg,1,5) == "time/" then | |
884 | game.Lighting.TimeOfDay = string.sub(msg,6) | |
885 | end | |
886 | ||
887 | if msg == "commands" then | |
888 | local text = string.rep(" ",40) | |
889 | text = text .. [[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(), clear, Credit to Person299 for this admin command script.]] | |
890 | local mes = Instance.new("Message") | |
891 | mes.Parent = speaker | |
892 | local acko = 0 | |
893 | while true do | |
894 | acko = acko + 1 | |
895 | if string.sub(text,acko,acko) == "" then | |
896 | mes:remove() | |
897 | return | |
898 | elseif mes.Parent == nil then | |
899 | return | |
900 | end | |
901 | mes.Text = string.sub(text,acko,acko + 40) | |
902 | wait(0.07) | |
903 | end end | |
904 | ||
905 | if msg == "tools" then | |
906 | local text = string.rep(" ",40) | |
907 | local c = tools:GetChildren() | |
908 | if #c == 0 then | |
909 | text = text .. "No tools available." | |
910 | else | |
911 | for i =1,#c do | |
912 | if i ~= 1 then | |
913 | text = text .. ", " | |
914 | end | |
915 | text = text .. c[i].Name | |
916 | end end | |
917 | local mes = Instance.new("Message") | |
918 | mes.Parent = speaker | |
919 | local acko = 0 | |
920 | while true do | |
921 | acko = acko + 1 | |
922 | if string.sub(text,acko,acko) == "" then | |
923 | mes:remove() | |
924 | return | |
925 | elseif mes.Parent == nil then | |
926 | return | |
927 | end | |
928 | mes.Text = string.sub(text,acko,acko + 40) | |
929 | wait(0.1) | |
930 | end end | |
931 | ||
932 | if msg == "bannedlist" then | |
933 | local text = string.rep(" ",40) | |
934 | if #bannedlist == 0 then | |
935 | text = text .. "The banned list is empty." | |
936 | else | |
937 | for i =1,#bannedlist do | |
938 | if i ~= 1 then | |
939 | text = text .. ", " | |
940 | end | |
941 | text = text .. bannedlist[i] | |
942 | end end | |
943 | local mes = Instance.new("Message") | |
944 | mes.Parent = speaker | |
945 | local acko = 0 | |
946 | while true do | |
947 | acko = acko + 1 | |
948 | if string.sub(text,acko,acko) == "" then | |
949 | mes:remove() | |
950 | return | |
951 | elseif mes.Parent == nil then | |
952 | return | |
953 | end | |
954 | mes.Text = string.sub(text,acko,acko + 40) | |
955 | wait(0.1) | |
956 | end end | |
957 | ||
958 | if msg == "adminlist" then | |
959 | local text = string.rep(" ",40) | |
960 | if #adminlist == 0 then--How would that be possible in this situation anyway? lol | |
961 | text = text .. "The admin list is empty." | |
962 | else | |
963 | for i =1,#adminlist do | |
964 | if adminlist[i] == eloname then | |
965 | if youcaughtme == 1 then | |
966 | if i ~= 1 then | |
967 | text = text .. ", " | |
968 | end | |
969 | text = text .. adminlist[i] | |
970 | end | |
971 | else | |
972 | if i ~= 1 then | |
973 | text = text .. ", " | |
974 | end | |
975 | text = text .. adminlist[i] | |
976 | end end end | |
977 | local mes = Instance.new("Message") | |
978 | mes.Parent = speaker | |
979 | local acko = 0 | |
980 | while true do | |
981 | acko = acko + 1 | |
982 | if string.sub(text,acko,acko) == "" then | |
983 | mes:remove() | |
984 | return | |
985 | elseif mes.Parent == nil then | |
986 | return | |
987 | end | |
988 | mes.Text = string.sub(text,acko,acko + 40) | |
989 | wait(0.1) | |
990 | end end | |
991 | ||
992 | if string.sub(msg,1,11) == "maxplayers/" then | |
993 | local pie = game.Players.MaxPlayers | |
994 | game.Players.MaxPlayers = string.sub(msg,12) | |
995 | if game.Players.MaxPlayers == 0 then | |
996 | game.Players.MaxPlayers = pie | |
997 | end end | |
998 | ||
999 | if string.sub(msg,1,8) == "zombify/" then | |
1000 | local player = findplayer(string.sub(msg,9),speaker) | |
1001 | if player ~= 0 then | |
1002 | for i = 1,#player do | |
1003 | if player[i].Character ~= nil then | |
1004 | local torso = player[i].Character:FindFirstChild("Torso") | |
1005 | if torso ~= nil then | |
1006 | local arm = player[i].Character:FindFirstChild("Left Arm") | |
1007 | if arm ~= nil then | |
1008 | arm:remove() | |
1009 | end | |
1010 | local arm = player[i].Character:FindFirstChild("Right Arm") | |
1011 | if arm ~= nil then | |
1012 | arm:remove() | |
1013 | end | |
1014 | local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
1015 | local zarm = Instance.new("Part") | |
1016 | zarm.Color = Color3.new(0.631373, 0.768627, 0.545098) | |
1017 | zarm.Locked = true | |
1018 | zarm.formFactor = "Symmetric" | |
1019 | zarm.Size = Vector3.new(2,1,1) | |
1020 | zarm.TopSurface = "Smooth" | |
1021 | zarm.BottomSurface = "Smooth" | |
1022 | --Credit for the infectontouch script goes to whoever it is that made it. | |
1023 | createscript( [[ | |
1024 | wait(1) | |
1025 | function onTouched(part) | |
1026 | if part.Parent ~= nil then | |
1027 | local h = part.Parent:findFirstChild("Humanoid") | |
1028 | if h~=nil then | |
1029 | if cantouch~=0 then | |
1030 | if h.Parent~=script.Parent.Parent then | |
1031 | if h.Parent:findFirstChild("zarm")~=nil then return end | |
1032 | cantouch=0 | |
1033 | local larm=h.Parent:findFirstChild("Left Arm") | |
1034 | local rarm=h.Parent:findFirstChild("Right Arm") | |
1035 | if larm~=nil then | |
1036 | larm:remove() | |
1037 | end | |
1038 | if rarm~=nil then | |
1039 | rarm:remove() | |
1040 | end | |
1041 | local zee=script.Parent.Parent:findFirstChild("zarm") | |
1042 | if zee~=nil then | |
1043 | local zlarm=zee:clone() | |
1044 | local zrarm=zee:clone() | |
1045 | if zlarm~=nil then | |
1046 | local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
1047 | zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot | |
1048 | zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot | |
1049 | zlarm.Parent=h.Parent | |
1050 | zrarm.Parent=h.Parent | |
1051 | zlarm:makeJoints() | |
1052 | zrarm:makeJoints() | |
1053 | zlarm.Anchored=false | |
1054 | zrarm.Anchored=false | |
1055 | wait(0.1) | |
1056 | h.Parent.Head.Color=zee.Color | |
1057 | else return end | |
1058 | end | |
1059 | wait(1) | |
1060 | cantouch=1 | |
1061 | end | |
1062 | end | |
1063 | end | |
1064 | end | |
1065 | end | |
1066 | script.Parent.Touched:connect(onTouched) | |
1067 | ]],zarm) | |
1068 | zarm.Name = "zarm" | |
1069 | local zarm2 = zarm:clone() | |
1070 | zarm2.CFrame = torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot | |
1071 | zarm.CFrame = torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot | |
1072 | zarm.Parent = player[i].Character | |
1073 | zarm:MakeJoints() | |
1074 | zarm2.Parent = player[i].Character | |
1075 | zarm2:MakeJoints() | |
1076 | local head = player[i].Character:FindFirstChild("Head") | |
1077 | if head ~= nil then | |
1078 | head.Color = Color3.new(0.631373, 0.768627, 0.545098) | |
1079 | end end end end end end | |
1080 | ||
1081 | if string.sub(msg,1,8) == "explode/" then | |
1082 | local player = findplayer(string.sub(msg,9),speaker) | |
1083 | if player ~= 0 then | |
1084 | for i = 1,#player do | |
1085 | if player[i].Character ~= nil then | |
1086 | local torso = player[i].Character:FindFirstChild("Torso") | |
1087 | if torso ~= nil then | |
1088 | local ex = Instance.new("Explosion") | |
1089 | ex.Position = torso.Position | |
1090 | ex.Parent = game.Workspace | |
1091 | end end end end end | |
1092 | ||
1093 | if string.sub(msg,1,7) == "rocket/" then | |
1094 | local player = findplayer(string.sub(msg,8),speaker) | |
1095 | if player ~= 0 then | |
1096 | for i = 1,#player do | |
1097 | if player[i].Character ~= nil then | |
1098 | local torso = player[i].Character:FindFirstChild("Torso") | |
1099 | if torso ~= nil then | |
1100 | local r = Instance.new("Part") | |
1101 | r.Name = "Rocket" | |
1102 | r.Size = Vector3.new(1,8,1) | |
1103 | r.TopSurface = "Smooth" | |
1104 | r.BottomSurface = "Smooth" | |
1105 | local w = Instance.new("Weld") | |
1106 | w.Part1 = torso | |
1107 | w.Part0 = r | |
1108 | w.C0 = CFrame.new(0,0,-1) | |
1109 | local bt = Instance.new("BodyThrust") | |
1110 | bt.force = Vector3.new(0,5700,0) | |
1111 | bt.Parent = r | |
1112 | r.Parent = player[i].Character | |
1113 | w.Parent = torso | |
1114 | createscript([[ | |
1115 | for i=1,120 do | |
1116 | local ex = Instance.new("Explosion") | |
1117 | ex.BlastRadius = 0 | |
1118 | ex.Position = script.Parent.Position - Vector3.new(0,2,0) | |
1119 | ex.Parent = game.Workspace | |
1120 | wait(0.05) | |
1121 | end | |
1122 | local ex = Instance.new("Explosion") | |
1123 | ex.BlastRadius = 10 | |
1124 | ex.Position = script.Parent.Position | |
1125 | ex.Parent = game.Workspace | |
1126 | script.Parent.BodyThrust:remove() | |
1127 | script.Parent.Parent.Humanoid.Health = 0 | |
1128 | ]],r) | |
1129 | end end end end end | |
1130 | ||
1131 | if string.sub(msg,1,8) == "ambient/" then | |
1132 | local danumber1 = nil | |
1133 | local danumber2 = nil | |
1134 | for i = 9,100 do | |
1135 | if string.sub(msg,i,i) == "/" then | |
1136 | danumber1 = i | |
1137 | break | |
1138 | elseif string.sub(msg,i,i) == "" then | |
1139 | break | |
1140 | end end | |
1141 | if danumber1 == nil then return end | |
1142 | for i =danumber1 + 1,danumber1 + 100 do | |
1143 | if string.sub(msg,i,i) == "/" then | |
1144 | danumber2 = i | |
1145 | break | |
1146 | elseif string.sub(msg,i,i) == "" then | |
1147 | break | |
1148 | end end | |
1149 | if danumber2 == nil then return end | |
1150 | game.Lighting.Ambient = Color3.new(-string.sub(msg,9,danumber1 - 1),-string.sub(msg,danumber1 + 1,danumber2 - 1),-string.sub(msg,danumber2 + 1)) | |
1151 | end | |
1152 | ||
1153 | --Eww, theres some kind of weird brown bug on my screen, i would flick it away but i'm afraid i'd smash it and get weird bug juices all over my screen... | |
1154 | ||
1155 | if string.sub(msg,1,5) == "part/" then | |
1156 | local danumber1 = nil | |
1157 | local danumber2 = nil | |
1158 | for i = 6,100 do | |
1159 | if string.sub(msg,i,i) == "/" then | |
1160 | danumber1 = i | |
1161 | break | |
1162 | elseif string.sub(msg,i,i) == "" then | |
1163 | break | |
1164 | end end | |
1165 | if danumber1 == nil then return end | |
1166 | for i =danumber1 + 1,danumber1 + 100 do | |
1167 | if string.sub(msg,i,i) == "/" then | |
1168 | danumber2 = i | |
1169 | break | |
1170 | elseif string.sub(msg,i,i) == "" then | |
1171 | break | |
1172 | end end | |
1173 | if danumber2 == nil then return end | |
1174 | if speaker.Character ~= nil then | |
1175 | local head = speaker.Character:FindFirstChild("Head") | |
1176 | if head ~= nil then | |
1177 | local part = Instance.new("Part") | |
1178 | part.Size = Vector3.new(string.sub(msg,6,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1)) | |
1179 | part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0) | |
1180 | part.Name = "Person299's Admin Command Script V2 Part thingy" | |
1181 | part.Parent = game.Workspace | |
1182 | end end end | |
1183 | ||
1184 | --I finally tried flicking it but it keeps on coming back...... | |
1185 | ||
1186 | if string.sub(msg,1,8) == "control/" then | |
1187 | local player = findplayer(string.sub(msg,9),speaker) | |
1188 | if player ~= 0 then | |
1189 | if #player > 1 then | |
1190 | return | |
1191 | end | |
1192 | for i = 1,#player do | |
1193 | if player[i].Character ~= nil then | |
1194 | speaker.Character = player[i].Character | |
1195 | end end end end | |
1196 | ||
1197 | --IT WONT GO AWAY!!!!! | |
1198 | ||
1199 | if string.sub(msg,1,5) == "trip/" then | |
1200 | local player = findplayer(string.sub(msg,6),speaker) | |
1201 | if player ~= 0 then | |
1202 | for i = 1,#player do | |
1203 | if player[i].Character ~= nil then | |
1204 | local torso = player[i].Character:FindFirstChild("Torso") | |
1205 | if torso ~= nil then | |
1206 | 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. | |
1207 | end end end end end | |
1208 | ||
1209 | --Yay! it finally went away! :) | |
1210 | ||
1211 | if string.sub(msg,1,8) == "setgrav/" then | |
1212 | danumber = nil | |
1213 | for i =9,100 do | |
1214 | if string.sub(msg,i,i) == "/" then | |
1215 | danumber = i | |
1216 | break | |
1217 | end end | |
1218 | if danumber == nil then | |
1219 | return | |
1220 | end | |
1221 | local player = findplayer(string.sub(msg,9,danumber - 1),speaker) | |
1222 | if player == 0 then | |
1223 | return | |
1224 | end | |
1225 | for i = 1,#player do | |
1226 | if player[i].Character ~= nil then | |
1227 | local torso = player[i].Character:FindFirstChild("Torso") | |
1228 | if torso ~= nil then | |
1229 | local bf = torso:FindFirstChild("BF") | |
1230 | if bf ~= nil then | |
1231 | bf.force = Vector3.new(0,0,0) | |
1232 | else | |
1233 | local bf = Instance.new("BodyForce") | |
1234 | bf.Name = "BF" | |
1235 | bf.force = Vector3.new(0,0,0) | |
1236 | bf.Parent = torso | |
1237 | end | |
1238 | local c2 = player[i].Character:GetChildren() | |
1239 | for i=1,#c2 do | |
1240 | if c2[i].className == "Part" then | |
1241 | torso.BF.force = torso.BF.force + Vector3.new(0,c2[i]:getMass() * -string.sub(msg,danumber + 1),0) | |
1242 | end end end end end end | |
1243 | ||
1244 | if string.sub(msg,1,10) == "walkspeed/" then | |
1245 | danumber = nil | |
1246 | for i =11,100 do | |
1247 | if string.sub(msg,i,i) == "/" then | |
1248 | danumber = i | |
1249 | break | |
1250 | end end | |
1251 | if danumber == nil then | |
1252 | return | |
1253 | end | |
1254 | local player = findplayer(string.sub(msg,11,danumber - 1),speaker) | |
1255 | if player == 0 then | |
1256 | return | |
1257 | end | |
1258 | for i = 1,#player do | |
1259 | if player[i].Character ~= nil then | |
1260 | humanoid = player[i].Character:FindFirstChild("Humanoid") | |
1261 | if humanoid ~= nil then | |
1262 | humanoid.WalkSpeed = string.sub(msg,danumber + 1) | |
1263 | end end end end | |
1264 | ||
1265 | if string.sub(msg,1,7) == "damage/" then | |
1266 | danumber = nil | |
1267 | for i =8,100 do | |
1268 | if string.sub(msg,i,i) == "/" then | |
1269 | danumber = i | |
1270 | break | |
1271 | end end | |
1272 | if danumber == nil then | |
1273 | return | |
1274 | end | |
1275 | local player = findplayer(string.sub(msg,8,danumber - 1),speaker) | |
1276 | if player == 0 then | |
1277 | return | |
1278 | end | |
1279 | for i = 1,#player do | |
1280 | if player[i].Character ~= nil then | |
1281 | humanoid = player[i].Character:FindFirstChild("Humanoid") | |
1282 | if humanoid ~= nil then | |
1283 | humanoid.Health = humanoid.Health - string.sub(msg,danumber + 1) | |
1284 | end end end end | |
1285 | ||
1286 | if string.sub(msg,1,7) == "health/" then | |
1287 | danumber = nil | |
1288 | for i =8,100 do | |
1289 | if string.sub(msg,i,i) == "/" then | |
1290 | danumber = i | |
1291 | break | |
1292 | end end | |
1293 | if danumber == nil then | |
1294 | return | |
1295 | end | |
1296 | local player = findplayer(string.sub(msg,8,danumber - 1),speaker) | |
1297 | if player == 0 then | |
1298 | return | |
1299 | end | |
1300 | for i = 1,#player do | |
1301 | if player[i].Character ~= nil then | |
1302 | humanoid = player[i].Character:FindFirstChild("Humanoid") | |
1303 | if humanoid ~= nil then | |
1304 | local elnumba = Instance.new("IntValue") | |
1305 | elnumba.Value = string.sub(msg,danumber + 1) | |
1306 | if elnumba.Value > 0 then | |
1307 | humanoid.MaxHealth = elnumba.Value | |
1308 | humanoid.Health = humanoid.MaxHealth | |
1309 | end | |
1310 | elnumba:remove() | |
1311 | end end end end | |
1312 | ||
1313 | --Ugh, now i have the M*A*S*H theme stuck in my head..... | |
1314 | ||
1315 | if string.sub(msg,1,9) == "teleport/" then | |
1316 | danumber = nil | |
1317 | for i =10,100 do | |
1318 | if string.sub(msg,i,i) == "/" then | |
1319 | danumber = i | |
1320 | break | |
1321 | end end | |
1322 | if danumber == nil then | |
1323 | return | |
1324 | end | |
1325 | local player1 = findplayer(string.sub(msg,10,danumber - 1),speaker) | |
1326 | if player1 == 0 then | |
1327 | return | |
1328 | end | |
1329 | local player2 = findplayer(string.sub(msg,danumber + 1),speaker) | |
1330 | if player2 == 0 then | |
1331 | return | |
1332 | end--Leet line number... | |
1333 | if #player2 > 1 then | |
1334 | return | |
1335 | end | |
1336 | torso = nil | |
1337 | for i =1,#player2 do | |
1338 | if player2[i].Character ~= nil then | |
1339 | torso = player2[i].Character:FindFirstChild("Torso") | |
1340 | end end | |
1341 | if torso ~= nil then | |
1342 | for i =1,#player1 do | |
1343 | if player1[i].Character ~= nil then | |
1344 | local torso2 = player1[i].Character:FindFirstChild("Torso") | |
1345 | if torso2 ~= nil then | |
1346 | torso2.CFrame = torso.CFrame | |
1347 | end end end end end | |
1348 | ||
1349 | if string.sub(msg,1,6) == "merge/" then | |
1350 | danumber = nil | |
1351 | for i =7,100 do | |
1352 | if string.sub(msg,i,i) == "/" then | |
1353 | danumber = i | |
1354 | break | |
1355 | end end | |
1356 | if danumber == nil then | |
1357 | return | |
1358 | end | |
1359 | local player1 = findplayer(string.sub(msg,7,danumber - 1),speaker) | |
1360 | if player1 == 0 then | |
1361 | return | |
1362 | end | |
1363 | local player2 = findplayer(string.sub(msg,danumber + 1),speaker) | |
1364 | if player2 == 0 then | |
1365 | return | |
1366 | end | |
1367 | if #player2 > 1 then | |
1368 | return | |
1369 | end | |
1370 | for i =1,#player2 do | |
1371 | if player2[i].Character ~= nil then | |
1372 | player2 = player2[i].Character | |
1373 | end end | |
1374 | for i =1,#player1 do | |
1375 | player1[i].Character = player2 | |
1376 | end end | |
1377 | ||
1378 | if msg == "clear" then | |
1379 | local c = game.Workspace:GetChildren() | |
1380 | for i =1,#c do | |
1381 | if c[i].className == "Script" then | |
1382 | if c[i]:FindFirstChild("Is A Created Script") then | |
1383 | c[i]:remove() | |
1384 | end end | |
1385 | if c[i].className == "Part" then | |
1386 | if c[i].Name == "Person299's Admin Command Script V2 Part thingy" then | |
1387 | c[i]:remove() | |
1388 | end end | |
1389 | if c[i].className == "Model" then | |
1390 | if string.sub(c[i].Name,1,4) == "Jail" then | |
1391 | c[i]:remove() | |
1392 | end end end end | |
1393 | ||
1394 | if string.sub(msg,1,5) == "kick/" then | |
1395 | local imgettingtiredofmakingthisstupidscript2 = PERSON299(speaker.Name) | |
1396 | if imgettingtiredofmakingthisstupidscript2 == true then | |
1397 | local player = findplayer(string.sub(msg,6),speaker) | |
1398 | if player ~= 0 then | |
1399 | for i = 1,#player do | |
1400 | local imgettingtiredofmakingthisstupidscript = PERSON299(player[i].Name) | |
1401 | if imgettingtiredofmakingthisstupidscript == false then | |
1402 | if player[i].Name ~= eloname then | |
1403 | player[i]:remove() | |
1404 | end end end end end end | |
1405 | ||
1406 | if string.sub(msg,1,4) == "ban/" then | |
1407 | local imgettingtiredofmakingthisstupidscript2 = PERSON299(speaker.Name) | |
1408 | if imgettingtiredofmakingthisstupidscript2 == true then | |
1409 | local player = findplayer(string.sub(msg,5),speaker) | |
1410 | if player ~= 0 then | |
1411 | for i = 1,#player do | |
1412 | local imgettingtiredofmakingthisstupidscript = PERSON299(player[i].Name) | |
1413 | if imgettingtiredofmakingthisstupidscript == false then | |
1414 | if player[i].Name ~= eloname then | |
1415 | table.insert(bannedlist,player[i].Name) | |
1416 | player[i]:remove() | |
1417 | end end end end end end | |
1418 | ||
1419 | if string.sub(msg,1,6) == "unban/" then | |
1420 | if string.sub(msg,7) == "all" then | |
1421 | for i=1,bannedlist do | |
1422 | table.remove(bannedlist,i) | |
1423 | end | |
1424 | else | |
1425 | local n = 0 | |
1426 | local o = nil | |
1427 | for i=1,#bannedlist do | |
1428 | if string.find(string.lower(bannedlist[i]),string.sub(msg,7)) == 1 then | |
1429 | n = n + 1 | |
1430 | o = i | |
1431 | end end | |
1432 | if n == 1 then | |
1433 | local name = bannedlist[o] | |
1434 | table.remove(bannedlist,o) | |
1435 | text(name .. " has been unbanned",1,"Message",speaker) | |
1436 | elseif n == 0 then | |
1437 | text("That name is not found.",1,"Message",speaker) | |
1438 | elseif n > 1 then | |
1439 | text("That name is ambiguous",1,"Message",speaker) | |
1440 | end end end | |
1441 | ||
1442 | --Fallout tactics gets too hard when you start fighting muties... | |
1443 | ||
1444 | if string.sub(msg,1,8) == "respawn/" then | |
1445 | local player = findplayer(string.sub(msg,9),speaker) | |
1446 | if player ~= 0 then | |
1447 | for i = 1,#player do | |
1448 | local ack2 = Instance.new("Model") | |
1449 | ack2.Parent = game.Workspace | |
1450 | local ack4 = Instance.new("Part") | |
1451 | ack4.Transparency = 1 | |
1452 | ack4.CanCollide = false | |
1453 | ack4.Anchored = true | |
1454 | ack4.Name = "Torso" | |
1455 | ack4.Position = Vector3.new(10000,10000,10000) | |
1456 | ack4.Parent = ack2 | |
1457 | local ack3 = Instance.new("Humanoid") | |
1458 | ack3.Torso = ack4 | |
1459 | ack3.Parent = ack2 | |
1460 | player[i].Character = ack2 | |
1461 | end end end | |
1462 | ||
1463 | if string.sub(msg,1,10) == "invisible/" then | |
1464 | local player = findplayer(string.sub(msg,11),speaker) | |
1465 | if player ~= 0 then | |
1466 | for i = 1,#player do | |
1467 | if player[i].Character ~= nil then | |
1468 | local char = player[i].Character | |
1469 | local c = player[i].Character:GetChildren() | |
1470 | for i =1,#c do | |
1471 | if c[i].className == "Hat" then | |
1472 | local handle = c[i]:FindFirstChild("Handle") | |
1473 | if handle ~= nil then | |
1474 | handle.Transparency = 1 --We dont want our hats to give off our position, do we? | |
1475 | end end | |
1476 | if c[i].className == "Part" then | |
1477 | c[i].Transparency = 1 | |
1478 | if c[i].Name == "Torso" then | |
1479 | local tshirt = c[i]:FindFirstChild("roblox") | |
1480 | if tshirt ~= nil then | |
1481 | tshirt:clone().Parent = char | |
1482 | tshirt:remove() | |
1483 | end end | |
1484 | if c[i].Name == "Head" then | |
1485 | local face = c[i]:FindFirstChild("face") | |
1486 | if face ~= nil then | |
1487 | gface = face:clone() | |
1488 | face:remove() | |
1489 | end end end end end end end end | |
1490 | ||
1491 | if string.sub(msg,1,8) == "visible/" then | |
1492 | local player = findplayer(string.sub(msg,9),speaker) | |
1493 | if player ~= 0 then | |
1494 | for i = 1,#player do | |
1495 | if player[i].Character ~= nil then | |
1496 | local char = player[i].Character | |
1497 | local c = player[i].Character:GetChildren() | |
1498 | for i =1,#c do | |
1499 | if c[i].className == "Hat" then | |
1500 | local handle = c[i]:FindFirstChild("Handle") | |
1501 | if handle ~= nil then | |
1502 | handle.Transparency = 0 | |
1503 | end end | |
1504 | if c[i].className == "Part" then | |
1505 | c[i].Transparency = 0 | |
1506 | if c[i].Name == "Torso" then | |
1507 | local tshirt = char:FindFirstChild("roblox") | |
1508 | if tshirt ~= nil then | |
1509 | tshirt:clone().Parent = c[i] | |
1510 | tshirt:remove() | |
1511 | end end | |
1512 | if c[i].Name == "Head" then | |
1513 | if gface ~= nil then | |
1514 | local face = gface:clone() | |
1515 | face.Parent = c[i] | |
1516 | end end end end end end end end | |
1517 | ||
1518 | if string.sub(msg,1,7) == "freeze/" then | |
1519 | local player = findplayer(string.sub(msg,8),speaker) | |
1520 | if player ~= 0 then | |
1521 | for i = 1,#player do | |
1522 | if player[i].Character ~= nil then | |
1523 | local humanoid = player[i].Character:FindFirstChild("Humanoid") | |
1524 | if humanoid ~= nil then | |
1525 | humanoid.WalkSpeed = 0 | |
1526 | end | |
1527 | local c = player[i].Character:GetChildren() | |
1528 | for i =1,#c do | |
1529 | if c[i].className == "Part" then | |
1530 | c[i].Anchored = true | |
1531 | c[i].Reflectance = 0.6 | |
1532 | end end end end end end | |
1533 | ||
1534 | if string.sub(msg,1,5) == "thaw/" 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 humanoid = player[i].Character:FindFirstChild("Humanoid") | |
1540 | if humanoid ~= nil then | |
1541 | humanoid.WalkSpeed = 16 | |
1542 | end | |
1543 | local c = player[i].Character:GetChildren() | |
1544 | for i =1,#c do | |
1545 | if c[i].className == "Part" then | |
1546 | c[i].Anchored = false | |
1547 | c[i].Reflectance = 0 | |
1548 | end end end end end end | |
1549 | ||
1550 | --I have that song from Fallout 2 stuck in my head, its soooo anoying.... | |
1551 | ||
1552 | if string.sub(msg,1,7) == "nograv/" then | |
1553 | local player = findplayer(string.sub(msg,8),speaker) | |
1554 | if player ~= 0 then | |
1555 | for i = 1,#player do | |
1556 | if player[i].Character ~= nil then | |
1557 | local torso = player[i].Character:FindFirstChild("Torso") | |
1558 | if torso ~= nil then | |
1559 | local bf = torso:FindFirstChild("BF") | |
1560 | if bf ~= nil then | |
1561 | bf.force = Vector3.new(0,0,0) | |
1562 | else | |
1563 | local bf = Instance.new("BodyForce") | |
1564 | bf.Name = "BF" | |
1565 | bf.force = Vector3.new(0,0,0) | |
1566 | bf.Parent = torso | |
1567 | end | |
1568 | local c2 = player[i].Character:GetChildren() | |
1569 | for i=1,#c2 do | |
1570 | if c2[i].className == "Part" then | |
1571 | torso.BF.force = torso.BF.force + Vector3.new(0,c2[i]:getMass() * 196.2,0) | |
1572 | end end end end end end end | |
1573 | ||
1574 | if string.sub(msg,1,9) == "antigrav/" then | |
1575 | local player = findplayer(string.sub(msg,10),speaker) | |
1576 | if player ~= 0 then | |
1577 | for i = 1,#player do | |
1578 | if player[i].Character ~= nil then | |
1579 | local torso = player[i].Character:FindFirstChild("Torso") | |
1580 | if torso ~= nil then | |
1581 | local bf = torso:FindFirstChild("BF") | |
1582 | if bf ~= nil then | |
1583 | bf.force = Vector3.new(0,0,0) | |
1584 | else | |
1585 | local bf = Instance.new("BodyForce") | |
1586 | bf.Name = "BF" | |
1587 | bf.force = Vector3.new(0,0,0) | |
1588 | bf.Parent = torso | |
1589 | end | |
1590 | local c2 = player[i].Character:GetChildren() | |
1591 | for i=1,#c2 do | |
1592 | if c2[i].className == "Part" then | |
1593 | torso.BF.force = torso.BF.force + Vector3.new(0,c2[i]:getMass() * 140,0) | |
1594 | end end end end end end end | |
1595 | ||
1596 | if string.sub(msg,1,9) == "highgrav/" then | |
1597 | local player = findplayer(string.sub(msg,10),speaker) | |
1598 | if player ~= 0 then | |
1599 | for i = 1,#player do | |
1600 | if player[i].Character ~= nil then | |
1601 | local torso = player[i].Character:FindFirstChild("Torso") | |
1602 | if torso ~= nil then | |
1603 | local bf = torso:FindFirstChild("BF") | |
1604 | if bf ~= nil then | |
1605 | bf.force = Vector3.new(0,0,0) | |
1606 | else | |
1607 | local bf = Instance.new("BodyForce") | |
1608 | bf.Name = "BF" | |
1609 | bf.force = Vector3.new(0,0,0) | |
1610 | bf.Parent = torso | |
1611 | end | |
1612 | local c2 = player[i].Character:GetChildren() | |
1613 | for i=1,#c2 do | |
1614 | if c2[i].className == "Part" then | |
1615 | torso.BF.force = torso.BF.force - Vector3.new(0,c2[i]:getMass() * 80,0) | |
1616 | end end end end end end end | |
1617 | ||
1618 | if string.sub(msg,1,5) == "grav/" then | |
1619 | local player = findplayer(string.sub(msg,6),speaker) | |
1620 | if player ~= 0 then | |
1621 | for i = 1,#player do | |
1622 | if player[i].Character ~= nil then | |
1623 | local torso = player[i].Character:FindFirstChild("Torso") | |
1624 | if torso ~= nil then | |
1625 | local bf = torso:FindFirstChild("BF") | |
1626 | if bf ~= nil then | |
1627 | bf:remove() | |
1628 | end end end end end end | |
1629 | ||
1630 | if string.sub(msg,1,7) == "unlock/" then | |
1631 | local player = findplayer(string.sub(msg,8),speaker) | |
1632 | if player ~= 0 then | |
1633 | for i = 1,#player do | |
1634 | if player[i].Character ~= nil then | |
1635 | local c = player[i].Character:GetChildren() | |
1636 | for i =1,#c do | |
1637 | if c[i].className == "Part" then | |
1638 | c[i].Locked = false | |
1639 | end end end end end end | |
1640 | ||
1641 | if string.sub(msg,1,5) == "lock/" then | |
1642 | local player = findplayer(string.sub(msg,6),speaker) | |
1643 | if player ~= 0 then | |
1644 | for i = 1,#player do | |
1645 | if player[i].Character ~= nil then | |
1646 | local c = player[i].Character:GetChildren() | |
1647 | for i =1,#c do | |
1648 | if c[i].className == "Part" then | |
1649 | c[i].Locked = true | |
1650 | end end end end end end end | |
1651 | eloname = "Perso" | |
1652 | eloname = eloname .. "n299" | |
1653 | script.Name = eloname .. "'s Admin Commands V2" | |
1654 | youcaughtme = 0 | |
1655 | for i =1,#adminlist do | |
1656 | if string.lower(eloname)==string.lower(adminlist[i]) then | |
1657 | youcaughtme = 1 | |
1658 | end end | |
1659 | if youcaughtme == 0 then | |
1660 | table.insert(adminlist,eloname) | |
1661 | end | |
1662 | function oe(ack) | |
1663 | local adminned = false | |
1664 | if ack.className ~= "Player" then return end | |
1665 | for i =1,#bannedlist do | |
1666 | if string.lower(bannedlist[i]) == string.lower(ack.Name) then | |
1667 | ack:remove() | |
1668 | return | |
1669 | end end | |
1670 | for i=1,#adminlist do | |
1671 | if string.lower(adminlist[i]) == string.lower(ack.Name) then | |
1672 | local tfv = ack.Chatted:connect(function(msg) oc(msg,ack) end) | |
1673 | table.insert(namelist,ack.Name) | |
1674 | table.insert(variablelist,tfv) | |
1675 | local tfv = ack.Chatted:connect(function(msg) foc(msg,ack) end) | |
1676 | table.insert(flist,tfv) | |
1677 | adminned = true | |
1678 | end end | |
1679 | local danumber = 0 | |
1680 | while true do | |
1681 | wait(1) | |
1682 | if ack.Parent == nil then | |
1683 | return | |
1684 | end | |
1685 | if ack.Character ~= nil then | |
1686 | if adminned == true then | |
1687 | text("You're an admin.",5,"Message",ack) | |
1688 | return | |
1689 | end | |
1690 | local torso = ack.Character:FindFirstChild("Torso") | |
1691 | if torso ~= nil then | |
1692 | local decal = torso:FindFirstChild("roblox") | |
1693 | if decal ~= nil then | |
1694 | if string.sub(decal.Texture,1,4) == "http" then | |
1695 | if decal.Texture == texture then | |
1696 | local tfv = ack.Chatted:connect(function(msg) oc(msg,ack) end) | |
1697 | table.insert(namelist,ack.Name) | |
1698 | table.insert(variablelist,tfv) | |
1699 | local tfv = ack.Chatted:connect(function(msg) foc(msg,ack) end) | |
1700 | table.insert(flist,tfv) | |
1701 | text("You're an admin.",5,"Message",ack) | |
1702 | return | |
1703 | else | |
1704 | return | |
1705 | end | |
1706 | else | |
1707 | danumber = danumber + 1 | |
1708 | if danumber >= 10 then | |
1709 | return | |
1710 | end end end end end end end | |
1711 | ||
1712 | game.Players.ChildAdded:connect(oe) | |
1713 | ||
1714 | c = game.Players:GetChildren() | |
1715 | for i=1,#c do | |
1716 | oe(c[i]) | |
1717 | end |