BananaGamer

Untitled

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