roblox admin script (100% works)


SUBMITTED BY: Guest

DATE: Nov. 29, 2013, 2:50 p.m.

FORMAT: Text only

SIZE: 56.4 kB

HITS: 849

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

comments powered by Disqus