Advertisement
iceeeeeaa

Untitled

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