RoomaticViner

AdminScript

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