Advertisement
adfada

Untitled

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