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