Advertisement
GemyScripter

lol

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