Advertisement
TryHarderNoob

Untitled

Jun 2nd, 2016
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 46.38 KB | None | 0 0
  1. namelist = {sethcuzzone5}
  2. variablelist = { }
  3. flist = { }
  4.  
  5. local source = script:FindFirstChild("source")
  6. if source ~= nil then
  7. sbbu = script.source:clone()
  8. sbbu.Disabled = false
  9. else
  10. print("source doesnt exist, your command script may malfunction")
  11. end
  12.  
  13.  
  14. tools = Instance.new("Model")
  15. c = game.Lighting:GetChildren()
  16. for i=1,#c do
  17. if c[i].className == "Tool" then
  18. c[i]:clone().Parent = tools
  19. end
  20. if c[i].className == "HopperBin" then
  21. c[i]:clone().Parent = tools
  22. end end
  23.  
  24. function findplayer(name,speaker)
  25. if string.lower(name) == "all" then
  26. local chars = { }
  27. local c = game.Players:GetChildren()
  28. for i =1,#c do
  29. if c[i].className == "Player" then
  30. table.insert(chars,c[i])
  31. end end
  32. return chars
  33. elseif string.sub(string.lower(name),1,9) == "nonadmins" then
  34. local nnum = 0
  35. local chars = { }
  36. local c = game.Players:GetChildren()
  37. for i=1,#c do
  38. local isadmin = false
  39. for i2 =1,#namelist do
  40. if namelist[i2] == c[i].Name then
  41. isadmin = true
  42. end end
  43. if isadmin == false then
  44. nnum = nnum + 1
  45. table.insert(chars,c[i])
  46. end end
  47. if nnum == 0 then
  48. return 0
  49. else
  50. return chars
  51. end
  52. elseif string.sub(string.lower(name),1,6) == "admins" then
  53. local anum = 0
  54. local chars = { }
  55. local c = game.Players:GetChildren()
  56. for i=1,#c do
  57. for i2 =1,#namelist do
  58. if namelist[i2] == c[i].Name then
  59. anum = anum + 1
  60. table.insert(chars,c[i])
  61. end end end
  62. if anum == 0 then
  63. return 0
  64. else
  65. return chars
  66. end
  67. elseif string.sub(string.lower(name),1,6) == "random" then
  68. while true do
  69. local c = game.Players:GetChildren()
  70. local r = math.random(1,#c)
  71. if c[r].className == "Player" then
  72. return { c[r] }
  73. end end
  74. elseif string.sub(string.lower(name),1,6) == "guests" then
  75. local gnum = 0
  76. local chars = { }
  77. local c = game.Players:GetChildren()
  78. for i=1,#c do
  79. if string.sub(c[i].Name,1,5) == "Guest" then
  80. gnum = gnum + 1
  81. table.insert(chars,c[i])
  82. end end
  83. if gnum == 0 then
  84. return 0
  85. else
  86. return chars
  87. end
  88. elseif string.sub(string.lower(name),1,5) == "team " then
  89. local theteam = nil
  90. local tnum = 0
  91. if game.Teams ~= nil then
  92. local c = game.Teams:GetChildren()
  93. for i =1,#c do
  94. if c[i].className == "Team" then
  95. if string.find(string.lower(c[i].Name),string.sub(string.lower(name),6)) == 1 then
  96. theteam = c[i]
  97. tnum = tnum + 1
  98. end end end
  99. if tnum == 1 then
  100. local chars = { }
  101. local c = game.Players:GetChildren()
  102. for i =1,#c do
  103. if c[i].className == "Player" then
  104. if c[i].TeamColor == theteam.TeamColor then
  105. table.insert(chars,c[i])
  106. end end end
  107. return chars
  108. end end
  109. return 0
  110. elseif string.lower(name) == "me" then
  111. local person299 = { speaker }
  112. return person299
  113. elseif string.lower(name) == "others" then
  114. local chars = { }
  115. local c = game.Players:GetChildren()
  116. for i =1,#c do
  117. if c[i].className == "Player" then
  118. if c[i] ~= speaker then
  119. table.insert(chars,c[i])
  120. end end end
  121. return chars
  122. else
  123. local chars = { }
  124. local commalist = { }
  125. local ssn = 0
  126. local lownum = 1
  127. local highestnum = 1
  128. local foundone = false
  129. while true do
  130. ssn = ssn + 1
  131. if string.sub(name,ssn,ssn) == "" then
  132. table.insert(commalist,lownum)
  133. table.insert(commalist,ssn - 1)
  134. highestnum = ssn - 1
  135. break
  136. end
  137. if string.sub(name,ssn,ssn) == "," then
  138. foundone = true
  139. table.insert(commalist,lownum)
  140. table.insert(commalist,ssn)
  141. lownum = ssn + 1
  142. end end
  143. if foundone == true then
  144. for ack=1,#commalist,2 do
  145. local cnum = 0
  146. local char = nil
  147. local c = game.Players:GetChildren()
  148. for i =1,#c do
  149. if c[i].className == "Player" then
  150. if string.find(string.lower(c[i].Name),string.sub(string.lower(name),commalist[ack],commalist[ack + 1] - 1)) == 1 then
  151. char = c[i]
  152. cnum = cnum + 1
  153. end end end
  154. if cnum == 1 then
  155. table.insert(chars,char)
  156. end end
  157. if #chars ~= 0 then
  158. return chars
  159. else
  160. return 0
  161. end
  162. else
  163. local cnum = 0
  164. local char = nil
  165. local c = game.Players:GetChildren()
  166. for i =1,#c do
  167. if c[i].className == "Player" then
  168. if string.find(string.lower(c[i].Name),string.lower(name)) == 1 then
  169. char = {c[i]}
  170. cnum = cnum + 1
  171. end end end
  172. if cnum == 1 then
  173. return char
  174. elseif cnum == 0 then
  175. text("That name is not found.",1,"Message",speaker)
  176. return 0
  177. elseif cnum > 1 then
  178. text("That name is ambiguous.",1,"Message",speaker)
  179. return 0
  180. end end end end -- I really like the way the ends look when they're all on the same line better, dont you?
  181.  
  182. function createscript(source,par)
  183. local a = sbbu:clone()
  184. local context = Instance.new("StringValue")
  185. context.Name = "Context"
  186. context.Value = source
  187. context.Parent = a
  188. while context.Value ~= source do wait() end
  189. a.Parent = par
  190. local b = Instance.new("IntValue")
  191. b.Name = "Is A Created Script"
  192. b.Parent = a
  193. end
  194.  
  195. function text(message,duration,type,object)
  196. local m = Instance.new(type)
  197. m.Text = message
  198. m.Parent = object
  199. wait(duration)
  200. if m.Parent ~= nil then
  201. m:remove()
  202. end end
  203.  
  204. function foc(msg,speaker)
  205. if string.lower(msg) == "fix" then
  206. for i =1,#namelist do
  207. if namelist[i] == speaker.Name then
  208. variablelist[i]:disconnect()
  209. table.remove(variablelist,i)
  210. table.remove(namelist,i)
  211. table.remove(flist,i)
  212. end end
  213. local tfv = speaker.Chatted:connect(function(msg) oc(msg,speaker) end)
  214. table.insert(namelist,speaker.Name)
  215. table.insert(variablelist,tfv)
  216. local tfv = speaker.Chatted:connect(function(msg) foc(msg,speaker) end)
  217. table.insert(flist,tfv)
  218. end end
  219.  
  220. function PERSON299(name)
  221. for i =1,#adminlist do
  222. if adminlist[i] == name then
  223. return true
  224. end end
  225. return false
  226. end
  227.  
  228. function oc(msg,speaker)
  229.  
  230. if string.sub(string.lower(msg),1,5) == "kill/" then--This part checks if the first part of the message is kill/
  231. 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/
  232. if player ~= 0 then--This part makes sure that the findplayer function found someone, as it returns 0 when it hasnt
  233. for i = 1,#player do--This part makes a loop, each different loop going through each player findplayer returned
  234. if player[i].Character ~= nil then--This part makes sure that the loop's current player's character exists
  235. local human = player[i].Character:FindFirstChild("Humanoid")--This part looks for the Humanoid in the character
  236. if human ~= nil then--This part makes sure the line above found a humanoid
  237. human.Health = 0--This part makes the humanoid's health 0
  238. end end end end end--This line contains the ends for all the if statements and the for loop
  239.  
  240. if string.sub(string.lower(msg),1,2) == "m/" then
  241. text(speaker.Name .. ": " .. string.sub(msg,3),2,"Message",game.Workspace)
  242. end
  243.  
  244. if string.sub(string.lower(msg),1,2) == "h/" then
  245. text(speaker.Name .. ": " .. string.sub(msg,3),2,"Hint",game.Workspace)
  246. end
  247.  
  248. if string.sub(string.lower(msg),1,2) == "c/" then--Dontcha wish pcall was more reliable?
  249. createscript(string.sub(msg,3),game.Workspace)
  250. end
  251.  
  252. local msg = string.lower(msg)
  253.  
  254. if string.sub(msg,1,5) == "give/" then
  255. local danumber1 = nil
  256. for i = 6,100 do
  257. if string.sub(msg,i,i) == "/" then
  258. danumber1 = i
  259. break
  260. elseif string.sub(msg,i,i) == "" then
  261. break
  262. end end
  263. if danumber1 == nil then return end
  264. local it = nil
  265. local all = true
  266. if string.sub(string.lower(msg),danumber1 + 1,danumber1 + 4) ~= "all" then
  267. all = false
  268. local itnum = 0
  269. local c = tools:GetChildren()
  270. for i2 = 1,#c do
  271. if string.find(string.lower(c[i2].Name),string.sub(string.lower(msg),danumber1 + 1)) == 1 then
  272. it = c[i2]
  273. itnum = itnum + 1
  274. end end
  275. if itnum ~= 1 then return end
  276. else
  277. all = true
  278. end
  279. local player = findplayer(string.sub(msg,6,danumber1 - 1),speaker)
  280. if player ~= 0 then
  281. for i = 1,#player do
  282. local bp = player[i]:FindFirstChild("Backpack")
  283. if bp ~= nil then
  284. if all == false then
  285. it:clone().Parent = bp
  286. else
  287. local c = tools:GetChildren()
  288. for i2 = 1,#c do
  289. c[i2]:clone().Parent = bp
  290. end end end end end end
  291.  
  292. --Bored...
  293.  
  294. if string.sub(msg,1,7) == "change/" then
  295. local danumber1 = nil
  296. local danumber2 = nil
  297. for i = 8,100 do
  298. if string.sub(msg,i,i) == "/" then
  299. danumber1 = i
  300. break
  301. elseif string.sub(msg,i,i) == "" then
  302. break
  303. end end
  304. if danumber1 == nil then return end
  305. for i =danumber1 + 1,danumber1 + 100 do
  306. if string.sub(msg,i,i) == "/" then
  307. danumber2 = i
  308. break
  309. elseif string.sub(msg,i,i) == "" then
  310. break
  311. end end
  312. if danumber2 == nil then return end
  313. local player = findplayer(string.sub(msg,8,danumber1 - 1),speaker)
  314. if player ~= 0 then
  315. for i = 1,#player do
  316. local ls = player[i]:FindFirstChild("leaderstats")
  317. if ls ~= nil then
  318. local it = nil
  319. local itnum = 0
  320. local c = ls:GetChildren()
  321. for i2 = 1,#c do
  322. if string.find(string.lower(c[i2].Name),string.sub(string.lower(msg),danumber1 + 1,danumber2 - 1)) == 1 then
  323. it = c[i2]
  324. itnum = itnum + 1
  325. end end
  326. if itnum == 1 then
  327. it.Value = string.sub(msg,danumber2 + 1)
  328. end end end end end
  329.  
  330. if string.sub(msg,1,6) == "ungod/" then
  331. local player = findplayer(string.sub(msg,7),speaker)
  332. if player ~= 0 then
  333. for i = 1,#player do
  334. if player[i].Character ~= nil then
  335. local isgod = false
  336. local c = player[i].Character:GetChildren()
  337. for i=1,#c do
  338. if c[i].className == "Script" then
  339. if c[i]:FindFirstChild("Context") then
  340. if string.sub(c[i].Context.Value,1,41) == "script.Parent.Humanoid.MaxHealth = 999999" then
  341. c[i]:remove()
  342. isgod = true
  343. end end end end
  344. if isgod == true then
  345. local c = player[i].Character:GetChildren()
  346. for i=1,#c do
  347. if c[i].className == "Part" then
  348. c[i].Reflectance = 0
  349. end
  350. if c[i].className == "Humanoid" then
  351. c[i].MaxHealth = 100
  352. c[i].Health = 100
  353. end
  354. if c[i].Name == "God FF" then
  355. c[i]:remove()
  356. end end end end end end end
  357.  
  358. if string.sub(msg,1,4) == "god/" then
  359. local player = findplayer(string.sub(msg,5),speaker)
  360. if player ~= 0 then
  361. for i = 1,#player do
  362. if player[i].Character ~= nil then
  363. if player[i].Character:FindFirstChild("God FF") == nil then
  364. createscript([[script.Parent.Humanoid.MaxHealth = 999999
  365. script.Parent.Humanoid.Health = 999999
  366. ff = Instance.new("ForceField")
  367. ff.Name = "God FF"
  368. ff.Parent = script.Parent
  369. function ot(hit)
  370. if hit.Parent ~= script.Parent then
  371. h = hit.Parent:FindFirstChild("Humanoid")
  372. if h ~= nil then
  373. h.Health = 0
  374. end
  375. h = hit.Parent:FindFirstChild("Zombie")
  376. if h ~= nil then
  377. h.Health = 0
  378. end end end
  379. c = script.Parent:GetChildren()
  380. for i=1,#c do
  381. if c[i].className == "Part" then
  382. c[i].Touched:connect(ot)
  383. c[i].Reflectance = 1
  384. end end]],player[i].Character)
  385. end end end end end
  386.  
  387. if string.sub(msg,1,7) == "punish/" then
  388. local player = findplayer(string.sub(msg,8),speaker)
  389. if player ~= 0 then
  390. for i = 1,#player do
  391. if player[i].Character ~= nil then
  392. player[i].Character.Parent = game.Lighting
  393. end end end end
  394.  
  395. if string.sub(msg,1,9) == "unpunish/" then
  396. local player = findplayer(string.sub(msg,10),speaker)
  397. if player ~= 0 then
  398. for i = 1,#player do
  399. if player[i].Character ~= nil then
  400. player[i].Character.Parent = game.Workspace
  401. player[i].Character:MakeJoints()
  402. end end end end
  403.  
  404. if string.sub(msg,1,3) == "ff/" then
  405. local player = findplayer(string.sub(msg,4),speaker)
  406. if player ~= 0 then
  407. for i = 1,#player do
  408. if player[i].Character ~= nil then
  409. local ff = Instance.new("ForceField")
  410. ff.Parent = player[i].Character
  411. end end end end
  412.  
  413. if string.sub(msg,1,5) == "unff/" then
  414. local player = findplayer(string.sub(msg,6),speaker)
  415. if player ~= 0 then
  416. for i = 1,#player do
  417. if player[i].Character ~= nil then
  418. local c = player[i].Character:GetChildren()
  419. for i2 = 1,#c do
  420. if c[i2].className == "ForceField" then
  421. c[i2]:remove()
  422. end end end end end end
  423.  
  424. if string.sub(msg,1,9) == "sparkles/" then
  425. local player = findplayer(string.sub(msg,10),speaker)
  426. if player ~= 0 then
  427. for i = 1,#player do
  428. if player[i].Character ~= nil then
  429. local torso = player[i].Character:FindFirstChild("Torso")
  430. if torso ~= nil then
  431. local sparkles = Instance.new("Sparkles")
  432. sparkles.Color = Color3.new(math.random(1,255),math.random(1,255),math.random(1,255))
  433. sparkles.Parent = torso
  434. end end end end end
  435.  
  436. if string.sub(msg,1,11) == "unsparkles/" then
  437. local player = findplayer(string.sub(msg,12),speaker)
  438. if player ~= 0 then
  439. for i = 1,#player do
  440. if player[i].Character ~= nil then
  441. local torso = player[i].Character:FindFirstChild("Torso")
  442. if torso ~= nil then
  443. local c = torso:GetChildren()
  444. for i2 = 1,#c do
  445. if c[i2].className == "Sparkles" then
  446. c[i2]:remove()
  447. end end end end end end end
  448.  
  449. if string.sub(msg,1,6) == "admin/" then
  450. local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name)
  451. if imgettingtiredofmakingthisstupidscript == true then
  452. local player = findplayer(string.sub(msg,7),speaker)
  453. if player ~= 0 then
  454. for i = 1,#player do
  455. for i2 =1,#namelist do
  456. if namelist[i2] == player[i].Name then
  457. variablelist[i2]:disconnect()
  458. flist[i2]:disconnect()
  459. table.remove(variablelist,i2)
  460. table.remove(flist,i2)
  461. table.remove(namelist,i2)
  462. end end
  463. local tfv = player[i].Chatted:connect(function(msg) oc(msg,player[i]) end)
  464. table.insert(namelist,player[i].Name)
  465. table.insert(variablelist,tfv)
  466. local tfv = player[i].Chatted:connect(function(msg) foc(msg,player[i]) end)
  467. table.insert(flist,tfv)
  468. end end end end
  469.  
  470. if string.sub(msg,1,8) == "unadmin/" then
  471. local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name)
  472. if imgettingtiredofmakingthisstupidscript == true then
  473. local player = findplayer(string.sub(msg,9),speaker)
  474. if player ~= 0 then
  475. for i = 1,#player do
  476. local imgettingtiredofmakingthisstupidscript = PERSON299(player[i].Name)
  477. if imgettingtiredofmakingthisstupidscript == false then
  478. for i2 =1,#namelist do
  479. if namelist[i2] == player[i].Name then
  480. variablelist[i2]:disconnect()
  481. table.remove(variablelist,i2)
  482. flist[i2]:disconnect()
  483. table.remove(flist,i2)
  484. table.remove(namelist,i2)
  485. end end end end end end end
  486.  
  487. if string.sub(msg,1,5) == "heal/" then
  488. local player = findplayer(string.sub(msg,6),speaker)
  489. if player ~= 0 then
  490. for i = 1,#player do
  491. if player[i].Character ~= nil then
  492. local human = player[i].Character:FindFirstChild("Humanoid")
  493. if human ~= nil then
  494. human.Health = human.MaxHealth
  495. end end end end end
  496.  
  497. if string.sub(msg,1,4) == "sit/" then
  498. local player = findplayer(string.sub(msg,5),speaker)
  499. if player ~= 0 then
  500. for i = 1,#player do
  501. if player[i].Character ~= nil then
  502. local human = player[i].Character:FindFirstChild("Humanoid")
  503. if human ~= nil then
  504. human.Sit = true
  505. end end end end end
  506.  
  507. if string.sub(msg,1,5) == "jump/" then
  508. local player = findplayer(string.sub(msg,6),speaker)
  509. if player ~= 0 then
  510. for i = 1,#player do
  511. if player[i].Character ~= nil then
  512. local human = player[i].Character:FindFirstChild("Humanoid")
  513. if human ~= nil then
  514. human.Jump = true
  515. end end end end end
  516.  
  517. if string.sub(msg,1,6) == "stand/" then
  518. local player = findplayer(string.sub(msg,7),speaker)
  519. if player ~= 0 then
  520. for i = 1,#player do
  521. if player[i].Character ~= nil then
  522. local human = player[i].Character:FindFirstChild("Humanoid")
  523. if human ~= nil then
  524. human.Sit = false
  525. end end end end end
  526.  
  527. if string.sub(msg,1,5) == "jail/" then
  528. local player = findplayer(string.sub(msg,6),speaker)
  529. if player ~= 0 then
  530. for i = 1,#player do
  531. if player[i].Character ~= nil then
  532. local torso = player[i].Character:FindFirstChild("Torso")
  533. if torso ~= nil then
  534. local ack = Instance.new("Model")
  535. ack.Name = "Jail" .. player[i].Name
  536. 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
  537. ack.Parent = game.Workspace
  538. ack:MoveTo(torso.Position)
  539. end end end end end
  540.  
  541. if string.sub(msg,1,7) == "unjail/" then
  542. local player = findplayer(string.sub(msg,8),speaker)
  543. if player ~= 0 then
  544. for i = 1,#player do
  545. local c = game.Workspace:GetChildren()
  546. for i2 =1,#c do
  547. if string.sub(c[i2].Name,1,4) == "Jail" then
  548. if string.sub(c[i2].Name,5) == player[i].Name then
  549. c[i2]:remove()
  550. end end end end end end
  551.  
  552. if string.sub(msg,1,12) == "removetools/" then
  553. local player = findplayer(string.sub(msg,13),speaker)
  554. if player ~= 0 then
  555. for i = 1,#player do
  556. local c = player[i].Backpack:GetChildren()
  557. for i =1,#c do
  558. c[i]:remove()
  559. end end end end
  560.  
  561. if string.sub(msg,1,10) == "givetools/" then
  562. local player = findplayer(string.sub(msg,11),speaker)
  563. if player ~= 0 then
  564. for i = 1,#player do
  565. local c = game.StarterPack:GetChildren()
  566. for i =1,#c do
  567. c[i]:clone().Parent = player[i].Backpack
  568. end end end end
  569.  
  570. if string.sub(msg,1,11) == "givebtools/" then
  571. local player = findplayer(string.sub(msg,12),speaker)
  572. if player ~= 0 then
  573. for i = 1,#player do
  574. local a = Instance.new("HopperBin")
  575. a.BinType = "GameTool"
  576. a.Parent = player[i].Backpack
  577. local a = Instance.new("HopperBin")
  578. a.BinType = "Clone"
  579. a.Parent = player[i].Backpack
  580. local a = Instance.new("HopperBin")
  581. a.BinType = "Hammer"
  582. a.Parent = player[i].Backpack
  583. end end end
  584.  
  585. if string.sub(msg,1,9) == "unshield/" then
  586. local player = findplayer(string.sub(msg,10),speaker)
  587. if player ~= 0 then
  588. for i = 1,#player do
  589. if player[i].Character ~= nil then
  590. local shield = player[i].Character:FindFirstChild("Weird Ball Thingy")
  591. if shield ~= nil then
  592. shield:remove()
  593. end end end end end
  594.  
  595. if string.sub(msg,1,7) == "shield/" then
  596. local player = findplayer(string.sub(msg,8),speaker)
  597. if player ~= 0 then
  598. for i = 1,#player do
  599. if player[i].Character ~= nil then
  600. local torso = player[i].Character:FindFirstChild("Torso")
  601. if torso ~= nil then
  602. if player[i].Character:FindFirstChild("Weird Ball Thingy") == nil then
  603. local ball = Instance.new("Part")
  604. ball.Size = Vector3.new(10,10,10)
  605. ball.BrickColor = BrickColor.new(1)
  606. ball.Transparency = 0.5
  607. ball.CFrame = torso.CFrame
  608. ball.TopSurface = "Smooth"
  609. ball.BottomSurface = "Smooth"
  610. ball.CanCollide = false
  611. ball.Name = "Weird Ball Thingy"
  612. ball.Reflectance = 0.2
  613. local sm = Instance.new("SpecialMesh")
  614. sm.MeshType = "Sphere"
  615. sm.Parent = ball
  616. ball.Parent = player[i].Character
  617. createscript([[
  618. function ot(hit)
  619. if hit.Parent ~= nil then
  620. if hit.Parent ~= script.Parent.Parent then
  621. if hit.Anchored == false then
  622. hit:BreakJoints()
  623. local pos = script.Parent.CFrame * (Vector3.new(0, 1.4, 0) * script.Parent.Size)
  624. hit.Velocity = ((hit.Position - pos).unit + Vector3.new(0, 0.5, 0)) * 150 + hit.Velocity
  625. hit.RotVelocity = hit.RotVelocity + Vector3.new(hit.Position.z - pos.z, 0, pos.x - hit.Position.x).unit * 40
  626. end end end end
  627. script.Parent.Touched:connect(ot) ]], ball)
  628. local bf = Instance.new("BodyForce")
  629. bf.force = Vector3.new(0,5e+004,0)
  630. bf.Parent = ball
  631. local w = Instance.new("Weld")
  632. w.Part1 = torso
  633. w.Part0 = ball
  634. ball.Shape = 0
  635. w.Parent = torso
  636. end end end end end end
  637.  
  638. if string.sub(msg,1,11) == "unloopkill/" then
  639. local player = findplayer(string.sub(msg,12),speaker)
  640. if player ~= 0 then
  641. for i = 1,#player do
  642. local c = game.Workspace:GetChildren()
  643. for i2 =1,#c do
  644. local it = c[i2]:FindFirstChild("elplayerioloopkillioperson299io")
  645. if it ~= nil then
  646. if it.Value == player[i] then
  647. c[i2]:remove()
  648. end end end end end end
  649.  
  650. if string.sub(msg,1,9) == "loopkill/" then
  651. local player = findplayer(string.sub(msg,10),speaker)
  652. if player ~= 0 then
  653. for i = 1,#player do
  654. local s = Instance.new("Script")
  655. createscript( [[name = "]] .. player[i].Name .. [["
  656. ov = Instance.new("ObjectValue")
  657. ov.Value = game.Players:FindFirstChild(name)
  658. ov.Name = "elplayerioloopkillioperson299io"
  659. ov.Parent = script
  660. player = ov.Value
  661. function oa(object)
  662. local elplayer = game.Players:playerFromCharacter(object)
  663. if elplayer ~= nil then
  664. if elplayer == player then
  665. local humanoid = object:FindFirstChild("Humanoid")
  666. if humanoid ~= nil then
  667. humanoid.Health = 0
  668. end end end end
  669. game.Workspace.ChildAdded:connect(oa)
  670. ]],game.Workspace)
  671. if player[i].Character ~= nil then
  672. local human = player[i].Character:FindFirstChild("Humanoid")
  673. if human ~= nil then
  674. human.Health = 0
  675. end end end end end
  676.  
  677. if string.lower(msg) == "shutdown" then
  678. local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name)
  679. if imgettingtiredofmakingthisstupidscript == true then
  680. game.NetworkServer:remove()
  681. end end
  682.  
  683. if string.sub(msg,1,5) == "time/" then
  684. game.Lighting.TimeOfDay = string.sub(msg,6)
  685. end
  686.  
  687. if msg == "commands" then
  688. local text = string.rep(" ",40)
  689. text = text .. [[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(), clear, Credit to Person299 for this admin command script.]]
  690. local mes = Instance.new("Message")
  691. mes.Parent = speaker
  692. local acko = 0
  693. while true do
  694. acko = acko + 1
  695. if string.sub(text,acko,acko) == "" then
  696. mes:remove()
  697. return
  698. elseif mes.Parent == nil then
  699. return
  700. end
  701. mes.Text = string.sub(text,acko,acko + 40)
  702. wait(0.07)
  703. end end
  704.  
  705. if msg == "tools" then
  706. local text = string.rep(" ",40)
  707. local c = tools:GetChildren()
  708. if #c == 0 then
  709. text = text .. "No tools available."
  710. else
  711. for i =1,#c do
  712. if i ~= 1 then
  713. text = text .. ", "
  714. end
  715. text = text .. c[i].Name
  716. end end
  717. local mes = Instance.new("Message")
  718. mes.Parent = speaker
  719. local acko = 0
  720. while true do
  721. acko = acko + 1
  722. if string.sub(text,acko,acko) == "" then
  723. mes:remove()
  724. return
  725. elseif mes.Parent == nil then
  726. return
  727. end
  728. mes.Text = string.sub(text,acko,acko + 40)
  729. wait(0.1)
  730. end end
  731.  
  732. if msg == "bannedlist" then
  733. local text = string.rep(" ",40)
  734. if #bannedlist == 0 then
  735. text = text .. "The banned list is empty."
  736. else
  737. for i =1,#bannedlist do
  738. if i ~= 1 then
  739. text = text .. ", "
  740. end
  741. text = text .. bannedlist[i]
  742. end end
  743. local mes = Instance.new("Message")
  744. mes.Parent = speaker
  745. local acko = 0
  746. while true do
  747. acko = acko + 1
  748. if string.sub(text,acko,acko) == "" then
  749. mes:remove()
  750. return
  751. elseif mes.Parent == nil then
  752. return
  753. end
  754. mes.Text = string.sub(text,acko,acko + 40)
  755. wait(0.1)
  756. end end
  757.  
  758. if msg == "adminlist" then
  759. local text = string.rep(" ",40)
  760. if #adminlist == 0 then--How would that be possible in this situation anyway? lol
  761. text = text .. "The admin list is empty."
  762. else
  763. for i =1,#adminlist do
  764. if adminlist[i] == eloname then
  765. if youcaughtme == 1 then
  766. if i ~= 1 then
  767. text = text .. ", "
  768. end
  769. text = text .. adminlist[i]
  770. end
  771. else
  772. if i ~= 1 then
  773. text = text .. ", "
  774. end
  775. text = text .. adminlist[i]
  776. end end end
  777. local mes = Instance.new("Message")
  778. mes.Parent = speaker
  779. local acko = 0
  780. while true do
  781. acko = acko + 1
  782. if string.sub(text,acko,acko) == "" then
  783. mes:remove()
  784. return
  785. elseif mes.Parent == nil then
  786. return
  787. end
  788. mes.Text = string.sub(text,acko,acko + 40)
  789. wait(0.1)
  790. end end
  791.  
  792. if string.sub(msg,1,11) == "maxplayers/" then
  793. local pie = game.Players.MaxPlayers
  794. game.Players.MaxPlayers = string.sub(msg,12)
  795. if game.Players.MaxPlayers == 0 then
  796. game.Players.MaxPlayers = pie
  797. end end
  798.  
  799. if string.sub(msg,1,8) == "zombify/" then
  800. local player = findplayer(string.sub(msg,9),speaker)
  801. if player ~= 0 then
  802. for i = 1,#player do
  803. if player[i].Character ~= nil then
  804. local torso = player[i].Character:FindFirstChild("Torso")
  805. if torso ~= nil then
  806. local arm = player[i].Character:FindFirstChild("Left Arm")
  807. if arm ~= nil then
  808. arm:remove()
  809. end
  810. local arm = player[i].Character:FindFirstChild("Right Arm")
  811. if arm ~= nil then
  812. arm:remove()
  813. end
  814. local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  815. local zarm = Instance.new("Part")
  816. zarm.Color = Color3.new(0.631373, 0.768627, 0.545098)
  817. zarm.Locked = true
  818. zarm.formFactor = "Symmetric"
  819. zarm.Size = Vector3.new(2,1,1)
  820. zarm.TopSurface = "Smooth"
  821. zarm.BottomSurface = "Smooth"
  822. --Credit for the infectontouch script goes to whoever it is that made it.
  823. createscript( [[
  824. wait(1)
  825. function onTouched(part)
  826. if part.Parent ~= nil then
  827. local h = part.Parent:findFirstChild("Humanoid")
  828. if h~=nil then
  829. if cantouch~=0 then
  830. if h.Parent~=script.Parent.Parent then
  831. if h.Parent:findFirstChild("zarm")~=nil then return end
  832. cantouch=0
  833. local larm=h.Parent:findFirstChild("Left Arm")
  834. local rarm=h.Parent:findFirstChild("Right Arm")
  835. if larm~=nil then
  836. larm:remove()
  837. end
  838. if rarm~=nil then
  839. rarm:remove()
  840. end
  841. local zee=script.Parent.Parent:findFirstChild("zarm")
  842. if zee~=nil then
  843. local zlarm=zee:clone()
  844. local zrarm=zee:clone()
  845. if zlarm~=nil then
  846. local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  847. zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
  848. zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
  849. zlarm.Parent=h.Parent
  850. zrarm.Parent=h.Parent
  851. zlarm:makeJoints()
  852. zrarm:makeJoints()
  853. zlarm.Anchored=false
  854. zrarm.Anchored=false
  855. wait(0.1)
  856. h.Parent.Head.Color=zee.Color
  857. else return end
  858. end
  859. wait(1)
  860. cantouch=1
  861. end
  862. end
  863. end
  864. end
  865. end
  866. script.Parent.Touched:connect(onTouched)
  867. ]],zarm)
  868. zarm.Name = "zarm"
  869. local zarm2 = zarm:clone()
  870. zarm2.CFrame = torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
  871. zarm.CFrame = torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
  872. zarm.Parent = player[i].Character
  873. zarm:MakeJoints()
  874. zarm2.Parent = player[i].Character
  875. zarm2:MakeJoints()
  876. local head = player[i].Character:FindFirstChild("Head")
  877. if head ~= nil then
  878. head.Color = Color3.new(0.631373, 0.768627, 0.545098)
  879. end end end end end end
  880.  
  881. if string.sub(msg,1,8) == "explode/" then
  882. local player = findplayer(string.sub(msg,9),speaker)
  883. if player ~= 0 then
  884. for i = 1,#player do
  885. if player[i].Character ~= nil then
  886. local torso = player[i].Character:FindFirstChild("Torso")
  887. if torso ~= nil then
  888. local ex = Instance.new("Explosion")
  889. ex.Position = torso.Position
  890. ex.Parent = game.Workspace
  891. end end end end end
  892.  
  893. if string.sub(msg,1,7) == "rocket/" then
  894. local player = findplayer(string.sub(msg,8),speaker)
  895. if player ~= 0 then
  896. for i = 1,#player do
  897. if player[i].Character ~= nil then
  898. local torso = player[i].Character:FindFirstChild("Torso")
  899. if torso ~= nil then
  900. local r = Instance.new("Part")
  901. r.Name = "Rocket"
  902. r.Size = Vector3.new(1,8,1)
  903. r.TopSurface = "Smooth"
  904. r.BottomSurface = "Smooth"
  905. local w = Instance.new("Weld")
  906. w.Part1 = torso
  907. w.Part0 = r
  908. w.C0 = CFrame.new(0,0,-1)
  909. local bt = Instance.new("BodyThrust")
  910. bt.force = Vector3.new(0,5700,0)
  911. bt.Parent = r
  912. r.Parent = player[i].Character
  913. w.Parent = torso
  914. createscript([[
  915. for i=1,120 do
  916. local ex = Instance.new("Explosion")
  917. ex.BlastRadius = 0
  918. ex.Position = script.Parent.Position - Vector3.new(0,2,0)
  919. ex.Parent = game.Workspace
  920. wait(0.05)
  921. end
  922. local ex = Instance.new("Explosion")
  923. ex.BlastRadius = 10
  924. ex.Position = script.Parent.Position
  925. ex.Parent = game.Workspace
  926. script.Parent.BodyThrust:remove()
  927. script.Parent.Parent.Humanoid.Health = 0
  928. ]],r)
  929. end end end end end
  930.  
  931. if string.sub(msg,1,8) == "ambient/" then
  932. local danumber1 = nil
  933. local danumber2 = nil
  934. for i = 9,100 do
  935. if string.sub(msg,i,i) == "/" then
  936. danumber1 = i
  937. break
  938. elseif string.sub(msg,i,i) == "" then
  939. break
  940. end end
  941. if danumber1 == nil then return end
  942. for i =danumber1 + 1,danumber1 + 100 do
  943. if string.sub(msg,i,i) == "/" then
  944. danumber2 = i
  945. break
  946. elseif string.sub(msg,i,i) == "" then
  947. break
  948. end end
  949. if danumber2 == nil then return end
  950. game.Lighting.Ambient = Color3.new(-string.sub(msg,9,danumber1 - 1),-string.sub(msg,danumber1 + 1,danumber2 - 1),-string.sub(msg,danumber2 + 1))
  951. end
  952.  
  953. --Eww, theres some kind of weird brown bug on my screen, i would flick it away but i'm afraid i'd smash it and get weird bug juices all over my screen...
  954.  
  955. if string.sub(msg,1,5) == "part/" then
  956. local danumber1 = nil
  957. local danumber2 = nil
  958. for i = 6,100 do
  959. if string.sub(msg,i,i) == "/" then
  960. danumber1 = i
  961. break
  962. elseif string.sub(msg,i,i) == "" then
  963. break
  964. end end
  965. if danumber1 == nil then return end
  966. for i =danumber1 + 1,danumber1 + 100 do
  967. if string.sub(msg,i,i) == "/" then
  968. danumber2 = i
  969. break
  970. elseif string.sub(msg,i,i) == "" then
  971. break
  972. end end
  973. if danumber2 == nil then return end
  974. if speaker.Character ~= nil then
  975. local head = speaker.Character:FindFirstChild("Head")
  976. if head ~= nil then
  977. local part = Instance.new("Part")
  978. part.Size = Vector3.new(string.sub(msg,6,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1))
  979. part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0)
  980. part.Name = "Person299's Admin Command Script V2 Part thingy"
  981. part.Parent = game.Workspace
  982. end end end
  983.  
  984. --I finally tried flicking it but it keeps on coming back......
  985.  
  986. if string.sub(msg,1,8) == "control/" then
  987. local player = findplayer(string.sub(msg,9),speaker)
  988. if player ~= 0 then
  989. if #player > 1 then
  990. return
  991. end
  992. for i = 1,#player do
  993. if player[i].Character ~= nil then
  994. speaker.Character = player[i].Character
  995. end end end end
  996.  
  997. --IT WONT GO AWAY!!!!!
  998.  
  999. if string.sub(msg,1,5) == "trip/" then
  1000. local player = findplayer(string.sub(msg,6),speaker)
  1001. if player ~= 0 then
  1002. for i = 1,#player do
  1003. if player[i].Character ~= nil then
  1004. local torso = player[i].Character:FindFirstChild("Torso")
  1005. if torso ~= nil then
  1006. 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.
  1007. end end end end end
  1008.  
  1009. --Yay! it finally went away! :)
  1010.  
  1011. if string.sub(msg,1,8) == "setgrav/" then
  1012. danumber = nil
  1013. for i =9,100 do
  1014. if string.sub(msg,i,i) == "/" then
  1015. danumber = i
  1016. break
  1017. end end
  1018. if danumber == nil then
  1019. return
  1020. end
  1021. local player = findplayer(string.sub(msg,9,danumber - 1),speaker)
  1022. if player == 0 then
  1023. return
  1024. end
  1025. for i = 1,#player do
  1026. if player[i].Character ~= nil then
  1027. local torso = player[i].Character:FindFirstChild("Torso")
  1028. if torso ~= nil then
  1029. local bf = torso:FindFirstChild("BF")
  1030. if bf ~= nil then
  1031. bf.force = Vector3.new(0,0,0)
  1032. else
  1033. local bf = Instance.new("BodyForce")
  1034. bf.Name = "BF"
  1035. bf.force = Vector3.new(0,0,0)
  1036. bf.Parent = torso
  1037. end
  1038. local c2 = player[i].Character:GetChildren()
  1039. for i=1,#c2 do
  1040. if c2[i].className == "Part" then
  1041. torso.BF.force = torso.BF.force + Vector3.new(0,c2[i]:getMass() * -string.sub(msg,danumber + 1),0)
  1042. end end end end end end
  1043.  
  1044. if string.sub(msg,1,10) == "walkspeed/" then
  1045. danumber = nil
  1046. for i =11,100 do
  1047. if string.sub(msg,i,i) == "/" then
  1048. danumber = i
  1049. break
  1050. end end
  1051. if danumber == nil then
  1052. return
  1053. end
  1054. local player = findplayer(string.sub(msg,11,danumber - 1),speaker)
  1055. if player == 0 then
  1056. return
  1057. end
  1058. for i = 1,#player do
  1059. if player[i].Character ~= nil then
  1060. humanoid = player[i].Character:FindFirstChild("Humanoid")
  1061. if humanoid ~= nil then
  1062. humanoid.WalkSpeed = string.sub(msg,danumber + 1)
  1063. end end end end
  1064.  
  1065. if string.sub(msg,1,7) == "damage/" then
  1066. danumber = nil
  1067. for i =8,100 do
  1068. if string.sub(msg,i,i) == "/" then
  1069. danumber = i
  1070. break
  1071. end end
  1072. if danumber == nil then
  1073. return
  1074. end
  1075. local player = findplayer(string.sub(msg,8,danumber - 1),speaker)
  1076. if player == 0 then
  1077. return
  1078. end
  1079. for i = 1,#player do
  1080. if player[i].Character ~= nil then
  1081. humanoid = player[i].Character:FindFirstChild("Humanoid")
  1082. if humanoid ~= nil then
  1083. humanoid.Health = humanoid.Health - string.sub(msg,danumber + 1)
  1084. end end end end
  1085.  
  1086. if string.sub(msg,1,7) == "health/" then
  1087. danumber = nil
  1088. for i =8,100 do
  1089. if string.sub(msg,i,i) == "/" then
  1090. danumber = i
  1091. break
  1092. end end
  1093. if danumber == nil then
  1094. return
  1095. end
  1096. local player = findplayer(string.sub(msg,8,danumber - 1),speaker)
  1097. if player == 0 then
  1098. return
  1099. end
  1100. for i = 1,#player do
  1101. if player[i].Character ~= nil then
  1102. humanoid = player[i].Character:FindFirstChild("Humanoid")
  1103. if humanoid ~= nil then
  1104. local elnumba = Instance.new("IntValue")
  1105. elnumba.Value = string.sub(msg,danumber + 1)
  1106. if elnumba.Value > 0 then
  1107. humanoid.MaxHealth = elnumba.Value
  1108. humanoid.Health = humanoid.MaxHealth
  1109. end
  1110. elnumba:remove()
  1111. end end end end
  1112.  
  1113. --Ugh, now i have the M*A*S*H theme stuck in my head.....
  1114.  
  1115. if string.sub(msg,1,9) == "teleport/" then
  1116. danumber = nil
  1117. for i =10,100 do
  1118. if string.sub(msg,i,i) == "/" then
  1119. danumber = i
  1120. break
  1121. end end
  1122. if danumber == nil then
  1123. return
  1124. end
  1125. local player1 = findplayer(string.sub(msg,10,danumber - 1),speaker)
  1126. if player1 == 0 then
  1127. return
  1128. end
  1129. local player2 = findplayer(string.sub(msg,danumber + 1),speaker)
  1130. if player2 == 0 then
  1131. return
  1132. end
  1133. if #player2 > 1 then
  1134. return
  1135. end
  1136. torso = nil
  1137. for i =1,#player2 do
  1138. if player2[i].Character ~= nil then
  1139. torso = player2[i].Character:FindFirstChild("Torso")
  1140. end end
  1141. if torso ~= nil then
  1142. for i =1,#player1 do
  1143. if player1[i].Character ~= nil then
  1144. local torso2 = player1[i].Character:FindFirstChild("Torso")
  1145. if torso2 ~= nil then
  1146. torso2.CFrame = torso.CFrame
  1147. end end end end end
  1148.  
  1149. if string.sub(msg,1,6) == "merge/" then
  1150. danumber = nil
  1151. for i =7,100 do
  1152. if string.sub(msg,i,i) == "/" then
  1153. danumber = i
  1154. break
  1155. end end
  1156. if danumber == nil then
  1157. return
  1158. end
  1159. local player1 = findplayer(string.sub(msg,7,danumber - 1),speaker)
  1160. if player1 == 0 then
  1161. return
  1162. end
  1163. local player2 = findplayer(string.sub(msg,danumber + 1),speaker)
  1164. if player2 == 0 then
  1165. return
  1166. end
  1167. if #player2 > 1 then
  1168. return
  1169. end
  1170. for i =1,#player2 do
  1171. if player2[i].Character ~= nil then
  1172. player2 = player2[i].Character
  1173. end end
  1174. for i =1,#player1 do
  1175. player1[i].Character = player2
  1176. end end
  1177.  
  1178. if msg == "clear" then
  1179. local c = game.Workspace:GetChildren()
  1180. for i =1,#c do
  1181. if c[i].className == "Script" then
  1182. if c[i]:FindFirstChild("Is A Created Script") then
  1183. c[i]:remove()
  1184. end end
  1185. if c[i].className == "Part" then
  1186. if c[i].Name == "Person299's Admin Command Script V2 Part thingy" then
  1187. c[i]:remove()
  1188. end end
  1189. if c[i].className == "Model" then
  1190. if string.sub(c[i].Name,1,4) == "Jail" then
  1191. c[i]:remove()
  1192. end end end end
  1193.  
  1194. if string.sub(msg,1,5) == "kick/" then
  1195. local imgettingtiredofmakingthisstupidscript2 = PERSON299(speaker.Name)
  1196. if imgettingtiredofmakingthisstupidscript2 == true then
  1197. local player = findplayer(string.sub(msg,6),speaker)
  1198. if player ~= 0 then
  1199. for i = 1,#player do
  1200. local imgettingtiredofmakingthisstupidscript = PERSON299(player[i].Name)
  1201. if imgettingtiredofmakingthisstupidscript == false then
  1202. if player[i].Name ~= eloname then
  1203. player[i]:remove()
  1204. end end end end end end
  1205.  
  1206. if string.sub(msg,1,4) == "ban/" then
  1207. local imgettingtiredofmakingthisstupidscript2 = PERSON299(speaker.Name)
  1208. if imgettingtiredofmakingthisstupidscript2 == true then
  1209. local player = findplayer(string.sub(msg,5),speaker)
  1210. if player ~= 0 then
  1211. for i = 1,#player do
  1212. local imgettingtiredofmakingthisstupidscript = PERSON299(player[i].Name)
  1213. if imgettingtiredofmakingthisstupidscript == false then
  1214. if player[i].Name ~= eloname then
  1215. table.insert(bannedlist,player[i].Name)
  1216. player[i]:remove()
  1217. end end end end end end
  1218.  
  1219. if string.sub(msg,1,6) == "unban/" then
  1220. if string.sub(msg,7) == "all" then
  1221. for i=1,bannedlist do
  1222. table.remove(bannedlist,i)
  1223. end
  1224. else
  1225. local n = 0
  1226. local o = nil
  1227. for i=1,#bannedlist do
  1228. if string.find(string.lower(bannedlist[i]),string.sub(msg,7)) == 1 then
  1229. n = n + 1
  1230. o = i
  1231. end end
  1232. if n == 1 then
  1233. local name = bannedlist[o]
  1234. table.remove(bannedlist,o)
  1235. text(name .. " has been unbanned",1,"Message",speaker)
  1236. elseif n == 0 then
  1237. text("That name is not found.",1,"Message",speaker)
  1238. elseif n > 1 then
  1239. text("That name is ambiguous",1,"Message",speaker)
  1240. end end end
  1241.  
  1242. --Fallout tactics gets too hard when you start fighting muties...
  1243.  
  1244. if string.sub(msg,1,8) == "respawn/" then
  1245. local player = findplayer(string.sub(msg,9),speaker)
  1246. if player ~= 0 then
  1247. for i = 1,#player do
  1248. local ack2 = Instance.new("Model")
  1249. ack2.Parent = game.Workspace
  1250. local ack4 = Instance.new("Part")
  1251. ack4.Transparency = 1
  1252. ack4.CanCollide = false
  1253. ack4.Anchored = true
  1254. ack4.Name = "Torso"
  1255. ack4.Position = Vector3.new(10000,10000,10000)
  1256. ack4.Parent = ack2
  1257. local ack3 = Instance.new("Humanoid")
  1258. ack3.Torso = ack4
  1259. ack3.Parent = ack2
  1260. player[i].Character = ack2
  1261. end end end
  1262.  
  1263. if string.sub(msg,1,10) == "invisible/" then
  1264. local player = findplayer(string.sub(msg,11),speaker)
  1265. if player ~= 0 then
  1266. for i = 1,#player do
  1267. if player[i].Character ~= nil then
  1268. local char = player[i].Character
  1269. local c = player[i].Character:GetChildren()
  1270. for i =1,#c do
  1271. if c[i].className == "Hat" then
  1272. local handle = c[i]:FindFirstChild("Handle")
  1273. if handle ~= nil then
  1274. handle.Transparency = 1 --We dont want our hats to give off our position, do we?
  1275. end end
  1276. if c[i].className == "Part" then
  1277. c[i].Transparency = 1
  1278. if c[i].Name == "Torso" then
  1279. local tshirt = c[i]:FindFirstChild("roblox")
  1280. if tshirt ~= nil then
  1281. tshirt:clone().Parent = char
  1282. tshirt:remove()
  1283. end end
  1284. if c[i].Name == "Head" then
  1285. local face = c[i]:FindFirstChild("face")
  1286. if face ~= nil then
  1287. gface = face:clone()
  1288. face:remove()
  1289. end end end end end end end end
  1290.  
  1291. if string.sub(msg,1,8) == "visible/" then
  1292. local player = findplayer(string.sub(msg,9),speaker)
  1293. if player ~= 0 then
  1294. for i = 1,#player do
  1295. if player[i].Character ~= nil then
  1296. local char = player[i].Character
  1297. local c = player[i].Character:GetChildren()
  1298. for i =1,#c do
  1299. if c[i].className == "Hat" then
  1300. local handle = c[i]:FindFirstChild("Handle")
  1301. if handle ~= nil then
  1302. handle.Transparency = 0
  1303. end end
  1304. if c[i].className == "Part" then
  1305. c[i].Transparency = 0
  1306. if c[i].Name == "Torso" then
  1307. local tshirt = char:FindFirstChild("roblox")
  1308. if tshirt ~= nil then
  1309. tshirt:clone().Parent = c[i]
  1310. tshirt:remove()
  1311. end end
  1312. if c[i].Name == "Head" then
  1313. if gface ~= nil then
  1314. local face = gface:clone()
  1315. face.Parent = c[i]
  1316. end end end end end end end end
  1317.  
  1318. if string.sub(msg,1,7) == "freeze/" then
  1319. local player = findplayer(string.sub(msg,8),speaker)
  1320. if player ~= 0 then
  1321. for i = 1,#player do
  1322. if player[i].Character ~= nil then
  1323. local humanoid = player[i].Character:FindFirstChild("Humanoid")
  1324. if humanoid ~= nil then
  1325. humanoid.WalkSpeed = 0
  1326. end
  1327. local c = player[i].Character:GetChildren()
  1328. for i =1,#c do
  1329. if c[i].className == "Part" then
  1330. c[i].Anchored = true
  1331. c[i].Reflectance = 0.6
  1332. end end end end end end
  1333.  
  1334. if string.sub(msg,1,5) == "thaw/" then
  1335. local player = findplayer(string.sub(msg,6),speaker)
  1336. if player ~= 0 then
  1337. for i = 1,#player do
  1338. if player[i].Character ~= nil then
  1339. local humanoid = player[i].Character:FindFirstChild("Humanoid")
  1340. if humanoid ~= nil then
  1341. humanoid.WalkSpeed = 16
  1342. end
  1343. local c = player[i].Character:GetChildren()
  1344. for i =1,#c do
  1345. if c[i].className == "Part" then
  1346. c[i].Anchored = false
  1347. c[i].Reflectance = 0
  1348. end end end end end end
  1349.  
  1350. --I have that song from Fallout 2 stuck in my head, its soooo anoying....
  1351.  
  1352. if string.sub(msg,1,7) == "nograv/" then
  1353. local player = findplayer(string.sub(msg,8),speaker)
  1354. if player ~= 0 then
  1355. for i = 1,#player do
  1356. if player[i].Character ~= nil then
  1357. local torso = player[i].Character:FindFirstChild("Torso")
  1358. if torso ~= nil then
  1359. local bf = torso:FindFirstChild("BF")
  1360. if bf ~= nil then
  1361. bf.force = Vector3.new(0,0,0)
  1362. else
  1363. local bf = Instance.new("BodyForce")
  1364. bf.Name = "BF"
  1365. bf.force = Vector3.new(0,0,0)
  1366. bf.Parent = torso
  1367. end
  1368. local c2 = player[i].Character:GetChildren()
  1369. for i=1,#c2 do
  1370. if c2[i].className == "Part" then
  1371. torso.BF.force = torso.BF.force + Vector3.new(0,c2[i]:getMass() * 196.2,0)
  1372. end end end end end end end
  1373.  
  1374. if string.sub(msg,1,9) == "antigrav/" then
  1375. local player = findplayer(string.sub(msg,10),speaker)
  1376. if player ~= 0 then
  1377. for i = 1,#player do
  1378. if player[i].Character ~= nil then
  1379. local torso = player[i].Character:FindFirstChild("Torso")
  1380. if torso ~= nil then
  1381. local bf = torso:FindFirstChild("BF")
  1382. if bf ~= nil then
  1383. bf.force = Vector3.new(0,0,0)
  1384. else
  1385. local bf = Instance.new("BodyForce")
  1386. bf.Name = "BF"
  1387. bf.force = Vector3.new(0,0,0)
  1388. bf.Parent = torso
  1389. end
  1390. local c2 = player[i].Character:GetChildren()
  1391. for i=1,#c2 do
  1392. if c2[i].className == "Part" then
  1393. torso.BF.force = torso.BF.force + Vector3.new(0,c2[i]:getMass() * 140,0)
  1394. end end end end end end end
  1395.  
  1396. if string.sub(msg,1,9) == "highgrav/" then
  1397. local player = findplayer(string.sub(msg,10),speaker)
  1398. if player ~= 0 then
  1399. for i = 1,#player do
  1400. if player[i].Character ~= nil then
  1401. local torso = player[i].Character:FindFirstChild("Torso")
  1402. if torso ~= nil then
  1403. local bf = torso:FindFirstChild("BF")
  1404. if bf ~= nil then
  1405. bf.force = Vector3.new(0,0,0)
  1406. else
  1407. local bf = Instance.new("BodyForce")
  1408. bf.Name = "BF"
  1409. bf.force = Vector3.new(0,0,0)
  1410. bf.Parent = torso
  1411. end
  1412. local c2 = player[i].Character:GetChildren()
  1413. for i=1,#c2 do
  1414. if c2[i].className == "Part" then
  1415. torso.BF.force = torso.BF.force - Vector3.new(0,c2[i]:getMass() * 80,0)
  1416. end end end end end end end
  1417.  
  1418. if string.sub(msg,1,5) == "grav/" then
  1419. local player = findplayer(string.sub(msg,6),speaker)
  1420. if player ~= 0 then
  1421. for i = 1,#player do
  1422. if player[i].Character ~= nil then
  1423. local torso = player[i].Character:FindFirstChild("Torso")
  1424. if torso ~= nil then
  1425. local bf = torso:FindFirstChild("BF")
  1426. if bf ~= nil then
  1427. bf:remove()
  1428. end end end end end end
  1429.  
  1430. if string.sub(msg,1,7) == "unlock/" then
  1431. local player = findplayer(string.sub(msg,8),speaker)
  1432. if player ~= 0 then
  1433. for i = 1,#player do
  1434. if player[i].Character ~= nil then
  1435. local c = player[i].Character:GetChildren()
  1436. for i =1,#c do
  1437. if c[i].className == "Part" then
  1438. c[i].Locked = false
  1439. end end end end end end
  1440.  
  1441. if string.sub(msg,1,5) == "lock/" then
  1442. local player = findplayer(string.sub(msg,6),speaker)
  1443. if player ~= 0 then
  1444. for i = 1,#player do
  1445. if player[i].Character ~= nil then
  1446. local c = player[i].Character:GetChildren()
  1447. for i =1,#c do
  1448. if c[i].className == "Part" then
  1449. c[i].Locked = true
  1450. end end end end end end end
  1451. eloname = "Perso"
  1452. eloname = eloname .. "n299"
  1453. script.Name = eloname .. "'s Admin Commands V2"
  1454. youcaughtme = 0
  1455. for i =1,#adminlist do
  1456. if string.lower(eloname)==string.lower(adminlist[i]) then
  1457. youcaughtme = 1
  1458. end end
  1459. if youcaughtme == 0 then
  1460. table.insert(adminlist,eloname)
  1461. end
  1462. function oe(ack)
  1463. local adminned = false
  1464. if ack.className ~= "Player" then return end
  1465. for i =1,#bannedlist do
  1466. if string.lower(bannedlist[i]) == string.lower(ack.Name) then
  1467. ack:remove()
  1468. return
  1469. end end
  1470. for i=1,#adminlist do
  1471. if string.lower(adminlist[i]) == string.lower(ack.Name) then
  1472. local tfv = ack.Chatted:connect(function(msg) oc(msg,ack) end)
  1473. table.insert(namelist,ack.Name)
  1474. table.insert(variablelist,tfv)
  1475. local tfv = ack.Chatted:connect(function(msg) foc(msg,ack) end)
  1476. table.insert(flist,tfv)
  1477. adminned = true
  1478. end end
  1479. local danumber = 0
  1480. while true do
  1481. wait(1)
  1482. if ack.Parent == nil then
  1483. return
  1484. end
  1485. if ack.Character ~= nil then
  1486. if adminned == true then
  1487. text("You're an admin.",5,"Message",ack)
  1488. return
  1489. end
  1490. local torso = ack.Character:FindFirstChild("Torso")
  1491. if torso ~= nil then
  1492. local decal = torso:FindFirstChild("roblox")
  1493. if decal ~= nil then
  1494. if string.sub(decal.Texture,1,4) == "http" then
  1495. if decal.Texture == texture then
  1496. local tfv = ack.Chatted:connect(function(msg) oc(msg,ack) end)
  1497. table.insert(namelist,ack.Name)
  1498. table.insert(variablelist,tfv)
  1499. local tfv = ack.Chatted:connect(function(msg) foc(msg,ack) end)
  1500. table.insert(flist,tfv)
  1501. text("You're an admin.",5,"Message",ack)
  1502. return
  1503. else
  1504. return
  1505. end
  1506. else
  1507. danumber = danumber + 1
  1508. if danumber >= 10 then
  1509. return
  1510. end end end end end end end
  1511.  
  1512. game.Players.ChildAdded:connect(oe)
  1513.  
  1514. c = game.Players:GetChildren()
  1515. for i=1,#c do
  1516. oe(c[i])
  1517. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement