Advertisement
Guest User

admin for me

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