Advertisement
Godzillagamerzz10

Person299's Admin (NOT MINE)

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