Advertisement
iiHackerii

Untitled

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