Advertisement
memberhero

Untitled

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