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