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