Advertisement
RobloxScripter12

Person299 Admin Commands

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