Advertisement
Guest User

Untitled

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