Advertisement
Guest User

deded

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