FilthyFrank

Admin script?

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