Advertisement
Guest User

Warhammer

a guest
Dec 8th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 50.39 KB | None | 0 0
  1. --Version 2 1.02 I fixed some problems caused by the updates.
  2. adminlist = {"grouchyhalofan"}--Add in the names of the people you want to be able to use the command script here.
  3. --Please keep my name in there. ;)
  4. bannedlist = { "",""}--If you want someone not to be able to enter your place, put thier name in here.
  5. texture = ""--If you want someone wearing a certain t-shirt to be an admin, put the t-shirt's texture in here.
  6.  
  7. --[[
  8. 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,6) == "admin/" then
  633. local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name)
  634. if imgettingtiredofmakingthisstupidscript == true then
  635. local player = findplayer(string.sub(msg,7),speaker)
  636. if player ~= 0 then
  637. for i = 1,#player do
  638. for i2 =1,#namelist do
  639. if namelist[i2] == player[i].Name then
  640. variablelist[i2]:disconnect()
  641. flist[i2]:disconnect()
  642. table.remove(variablelist,i2)
  643. table.remove(flist,i2)
  644. table.remove(namelist,i2)
  645. end end
  646. local tfv = player[i].Chatted:connect(function(msg) oc(msg,player[i]) end)
  647. table.insert(namelist,player[i].Name)
  648. table.insert(variablelist,tfv)
  649. local tfv = player[i].Chatted:connect(function(msg) foc(msg,player[i]) end)
  650. table.insert(flist,tfv)
  651. end end end end
  652.  
  653. if string.sub(msg,1,8) == "unadmin/" then
  654. local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name)
  655. if imgettingtiredofmakingthisstupidscript == true then
  656. local player = findplayer(string.sub(msg,9),speaker)
  657. if player ~= 0 then
  658. for i = 1,#player do
  659. local imgettingtiredofmakingthisstupidscript = PERSON299(player[i].Name)
  660. if imgettingtiredofmakingthisstupidscript == false then
  661. for i2 =1,#namelist do
  662. if namelist[i2] == player[i].Name then
  663. variablelist[i2]:disconnect()
  664. table.remove(variablelist,i2)
  665. flist[i2]:disconnect()
  666. table.remove(flist,i2)
  667. table.remove(namelist,i2)
  668. end end end end end end end
  669.  
  670. if string.sub(msg,1,5) == "heal/" then
  671. local player = findplayer(string.sub(msg,6),speaker)
  672. if player ~= 0 then
  673. for i = 1,#player do
  674. if player[i].Character ~= nil then
  675. local human = player[i].Character:FindFirstChild("Humanoid")
  676. if human ~= nil then
  677. human.Health = human.MaxHealth
  678. end end end end end
  679.  
  680. if string.sub(msg,1,4) == "sit/" then
  681. local player = findplayer(string.sub(msg,5),speaker)
  682. if player ~= 0 then
  683. for i = 1,#player do
  684. if player[i].Character ~= nil then
  685. local human = player[i].Character:FindFirstChild("Humanoid")
  686. if human ~= nil then
  687. human.Sit = true
  688. end end end end end
  689.  
  690. if string.sub(msg,1,5) == "jump/" then
  691. local player = findplayer(string.sub(msg,6),speaker)
  692. if player ~= 0 then
  693. for i = 1,#player do
  694. if player[i].Character ~= nil then
  695. local human = player[i].Character:FindFirstChild("Humanoid")
  696. if human ~= nil then
  697. human.Jump = true
  698. end end end end end
  699.  
  700. if string.sub(msg,1,6) == "stand/" then
  701. local player = findplayer(string.sub(msg,7),speaker)
  702. if player ~= 0 then
  703. for i = 1,#player do
  704. if player[i].Character ~= nil then
  705. local human = player[i].Character:FindFirstChild("Humanoid")
  706. if human ~= nil then
  707. human.Sit = false
  708. end end end end end
  709.  
  710. if string.sub(msg,1,5) == "jail/" then
  711. local player = findplayer(string.sub(msg,6),speaker)
  712. if player ~= 0 then
  713. for i = 1,#player do
  714. if player[i].Character ~= nil then
  715. local torso = player[i].Character:FindFirstChild("Torso")
  716. if torso ~= nil then
  717. local ack = Instance.new("Model")
  718. ack.Name = "Jail" .. player[i].Name
  719. 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
  720. ack.Parent = game.Workspace
  721. ack:MoveTo(torso.Position)
  722. end end end end end
  723.  
  724. if string.sub(msg,1,7) == "unjail/" then
  725. local player = findplayer(string.sub(msg,8),speaker)
  726. if player ~= 0 then
  727. for i = 1,#player do
  728. local c = game.Workspace:GetChildren()
  729. for i2 =1,#c do
  730. if string.sub(c[i2].Name,1,4) == "Jail" then
  731. if string.sub(c[i2].Name,5) == player[i].Name then
  732. c[i2]:remove()
  733. end end end end end end
  734.  
  735. if string.sub(msg,1,12) == "removetools/" then
  736. local player = findplayer(string.sub(msg,13),speaker)
  737. if player ~= 0 then
  738. for i = 1,#player do
  739. local c = player[i].Backpack:GetChildren()
  740. for i =1,#c do
  741. c[i]:remove()
  742. end end end end
  743.  
  744. if string.sub(msg,1,10) == "givetools/" then
  745. local player = findplayer(string.sub(msg,11),speaker)
  746. if player ~= 0 then
  747. for i = 1,#player do
  748. local c = game.StarterPack:GetChildren()
  749. for i =1,#c do
  750. c[i]:clone().Parent = player[i].Backpack
  751. end end end end
  752.  
  753. if string.sub(msg,1,11) == "givebtools/" then
  754. local player = findplayer(string.sub(msg,12),speaker)
  755. if player ~= 0 then
  756. for i = 1,#player do
  757. local a = Instance.new("HopperBin")
  758. a.BinType = "GameTool"
  759. a.Parent = player[i].Backpack
  760. local a = Instance.new("HopperBin")
  761. a.BinType = "Clone"
  762. a.Parent = player[i].Backpack
  763. local a = Instance.new("HopperBin")
  764. a.BinType = "Hammer"
  765. a.Parent = player[i].Backpack
  766. end end end
  767.  
  768. if string.sub(msg,1,9) == "unshield/" then
  769. local player = findplayer(string.sub(msg,10),speaker)
  770. if player ~= 0 then
  771. for i = 1,#player do
  772. if player[i].Character ~= nil then
  773. local shield = player[i].Character:FindFirstChild("Weird Ball Thingy")
  774. if shield ~= nil then
  775. shield:remove()
  776. end end end end end
  777.  
  778. if string.sub(msg,1,7) == "shield/" then
  779. local player = findplayer(string.sub(msg,8),speaker)
  780. if player ~= 0 then
  781. for i = 1,#player do
  782. if player[i].Character ~= nil then
  783. local torso = player[i].Character:FindFirstChild("Torso")
  784. if torso ~= nil then
  785. if player[i].Character:FindFirstChild("Weird Ball Thingy") == nil then
  786. local ball = Instance.new("Part")
  787. ball.Size = Vector3.new(10,10,10)
  788. ball.BrickColor = BrickColor.new(1)
  789. ball.Transparency = 0.5
  790. ball.CFrame = torso.CFrame
  791. ball.TopSurface = "Smooth"
  792. ball.BottomSurface = "Smooth"
  793. ball.CanCollide = false
  794. ball.Name = "Weird Ball Thingy"
  795. ball.Reflectance = 0.2
  796. local sm = Instance.new("SpecialMesh")
  797. sm.MeshType = "Sphere"
  798. sm.Parent = ball
  799. ball.Parent = player[i].Character
  800. createscript([[
  801. function ot(hit)
  802. if hit.Parent ~= nil then
  803. if hit.Parent ~= script.Parent.Parent then
  804. if hit.Anchored == false then
  805. hit:BreakJoints()
  806. local pos = script.Parent.CFrame * (Vector3.new(0, 1.4, 0) * script.Parent.Size)
  807. hit.Velocity = ((hit.Position - pos).unit + Vector3.new(0, 0.5, 0)) * 150 + hit.Velocity
  808. hit.RotVelocity = hit.RotVelocity + Vector3.new(hit.Position.z - pos.z, 0, pos.x - hit.Position.x).unit * 40
  809. end end end end
  810. script.Parent.Touched:connect(ot) ]], ball)
  811. local bf = Instance.new("BodyForce")
  812. bf.force = Vector3.new(0,5e+004,0)
  813. bf.Parent = ball
  814. local w = Instance.new("Weld")
  815. w.Part1 = torso
  816. w.Part0 = ball
  817. ball.Shape = 0
  818. w.Parent = torso
  819. end end end end end end
  820.  
  821. if string.sub(msg,1,11) == "unloopkill/" then
  822. local player = findplayer(string.sub(msg,12),speaker)
  823. if player ~= 0 then
  824. for i = 1,#player do
  825. local c = game.Workspace:GetChildren()
  826. for i2 =1,#c do
  827. local it = c[i2]:FindFirstChild("elplayerioloopkillioperson299io")
  828. if it ~= nil then
  829. if it.Value == player[i] then
  830. c[i2]:remove()
  831. end end end end end end
  832.  
  833. if string.sub(msg,1,9) == "loopkill/" then
  834. local player = findplayer(string.sub(msg,10),speaker)
  835. if player ~= 0 then
  836. for i = 1,#player do
  837. local s = Instance.new("Script")
  838. createscript( [[name = "]] .. player[i].Name .. [["
  839. ov = Instance.new("ObjectValue")
  840. ov.Value = game.Players:FindFirstChild(name)
  841. ov.Name = "elplayerioloopkillioperson299io"
  842. ov.Parent = script
  843. player = ov.Value
  844. function oa(object)
  845. local elplayer = game.Players:playerFromCharacter(object)
  846. if elplayer ~= nil then
  847. if elplayer == player then
  848. local humanoid = object:FindFirstChild("Humanoid")
  849. if humanoid ~= nil then
  850. humanoid.Health = 0
  851. end end end end
  852. game.Workspace.ChildAdded:connect(oa)
  853. ]],game.Workspace)
  854. if player[i].Character ~= nil then
  855. local human = player[i].Character:FindFirstChild("Humanoid")
  856. if human ~= nil then
  857. human.Health = 0
  858. end end end end end
  859.  
  860. if string.lower(msg) == "shutdown" then
  861. local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name)
  862. if imgettingtiredofmakingthisstupidscript == true then
  863. game.NetworkServer:remove()
  864. end end
  865.  
  866. if string.sub(msg,1,5) == "time/" then
  867. game.Lighting.TimeOfDay = string.sub(msg,6)
  868. end
  869.  
  870. if msg == "commands" then
  871. local text = string.rep(" ",40)
  872. 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.]]
  873. local mes = Instance.new("Message")
  874. mes.Parent = speaker
  875. local acko = 0
  876. while true do
  877. acko = acko + 1
  878. if string.sub(text,acko,acko) == "" then
  879. mes:remove()
  880. return
  881. elseif mes.Parent == nil then
  882. return
  883. end
  884. mes.Text = string.sub(text,acko,acko + 40)
  885. wait(0.07)
  886. end end
  887.  
  888. if msg == "tools" then
  889. local text = string.rep(" ",40)
  890. local c = tools:GetChildren()
  891. if #c == 0 then
  892. text = text .. "No tools available."
  893. else
  894. for i =1,#c do
  895. if i ~= 1 then
  896. text = text .. ", "
  897. end
  898. text = text .. c[i].Name
  899. end end
  900. local mes = Instance.new("Message")
  901. mes.Parent = speaker
  902. local acko = 0
  903. while true do
  904. acko = acko + 1
  905. if string.sub(text,acko,acko) == "" then
  906. mes:remove()
  907. return
  908. elseif mes.Parent == nil then
  909. return
  910. end
  911. mes.Text = string.sub(text,acko,acko + 40)
  912. wait(0.1)
  913. end end
  914.  
  915. if msg == "bannedlist" then
  916. local text = string.rep(" ",40)
  917. if #bannedlist == 0 then
  918. text = text .. "The banned list is empty."
  919. else
  920. for i =1,#bannedlist do
  921. if i ~= 1 then
  922. text = text .. ", "
  923. end
  924. text = text .. bannedlist[i]
  925. end end
  926. local mes = Instance.new("Message")
  927. mes.Parent = speaker
  928. local acko = 0
  929. while true do
  930. acko = acko + 1
  931. if string.sub(text,acko,acko) == "" then
  932. mes:remove()
  933. return
  934. elseif mes.Parent == nil then
  935. return
  936. end
  937. mes.Text = string.sub(text,acko,acko + 40)
  938. wait(0.1)
  939. end end
  940.  
  941. if msg == "adminlist" then
  942. local text = string.rep(" ",40)
  943. if #adminlist == 0 then--How would that be possible in this situation anyway? lol
  944. text = text .. "The admin list is empty."
  945. else
  946. for i =1,#adminlist do
  947. if adminlist[i] == eloname then
  948. if youcaughtme == 1 then
  949. if i ~= 1 then
  950. text = text .. ", "
  951. end
  952. text = text .. adminlist[i]
  953. end
  954. else
  955. if i ~= 1 then
  956. text = text .. ", "
  957. end
  958. text = text .. adminlist[i]
  959. end end end
  960. local mes = Instance.new("Message")
  961. mes.Parent = speaker
  962. local acko = 0
  963. while true do
  964. acko = acko + 1
  965. if string.sub(text,acko,acko) == "" then
  966. mes:remove()
  967. return
  968. elseif mes.Parent == nil then
  969. return
  970. end
  971. mes.Text = string.sub(text,acko,acko + 40)
  972. wait(0.1)
  973. end end
  974.  
  975. if string.sub(msg,1,11) == "maxplayers/" then
  976. local pie = game.Players.MaxPlayers
  977. game.Players.MaxPlayers = string.sub(msg,12)
  978. if game.Players.MaxPlayers == 0 then
  979. game.Players.MaxPlayers = pie
  980. end end
  981.  
  982. if string.sub(msg,1,8) == "zombify/" then
  983. local player = findplayer(string.sub(msg,9),speaker)
  984. if player ~= 0 then
  985. for i = 1,#player do
  986. if player[i].Character ~= nil then
  987. local torso = player[i].Character:FindFirstChild("Torso")
  988. if torso ~= nil then
  989. local arm = player[i].Character:FindFirstChild("Left Arm")
  990. if arm ~= nil then
  991. arm:remove()
  992. end
  993. local arm = player[i].Character:FindFirstChild("Right Arm")
  994. if arm ~= nil then
  995. arm:remove()
  996. end
  997. local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  998. local zarm = Instance.new("Part")
  999. zarm.Color = Color3.new(0.631373, 0.768627, 0.545098)
  1000. zarm.Locked = true
  1001. zarm.formFactor = "Symmetric"
  1002. zarm.Size = Vector3.new(2,1,1)
  1003. zarm.TopSurface = "Smooth"
  1004. zarm.BottomSurface = "Smooth"
  1005. --Credit for the infectontouch script goes to whoever it is that made it.
  1006. createscript( [[
  1007. wait(1)
  1008. function onTouched(part)
  1009. if part.Parent ~= nil then
  1010. local h = part.Parent:findFirstChild("Humanoid")
  1011. if h~=nil then
  1012. if cantouch~=0 then
  1013. if h.Parent~=script.Parent.Parent then
  1014. if h.Parent:findFirstChild("zarm")~=nil then return end
  1015. cantouch=0
  1016. local larm=h.Parent:findFirstChild("Left Arm")
  1017. local rarm=h.Parent:findFirstChild("Right Arm")
  1018. if larm~=nil then
  1019. larm:remove()
  1020. end
  1021. if rarm~=nil then
  1022. rarm:remove()
  1023. end
  1024. local zee=script.Parent.Parent:findFirstChild("zarm")
  1025. if zee~=nil then
  1026. local zlarm=zee:clone()
  1027. local zrarm=zee:clone()
  1028. if zlarm~=nil then
  1029. local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1030. zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
  1031. zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
  1032. zlarm.Parent=h.Parent
  1033. zrarm.Parent=h.Parent
  1034. zlarm:makeJoints()
  1035. zrarm:makeJoints()
  1036. zlarm.Anchored=false
  1037. zrarm.Anchored=false
  1038. wait(0.1)
  1039. h.Parent.Head.Color=zee.Color
  1040. else return end
  1041. end
  1042. wait(1)
  1043. cantouch=1
  1044. end
  1045. end
  1046. end
  1047. end
  1048. end
  1049. script.Parent.Touched:connect(onTouched)
  1050. ]],zarm)
  1051. zarm.Name = "zarm"
  1052. local zarm2 = zarm:clone()
  1053. zarm2.CFrame = torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
  1054. zarm.CFrame = torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
  1055. zarm.Parent = player[i].Character
  1056. zarm:MakeJoints()
  1057. zarm2.Parent = player[i].Character
  1058. zarm2:MakeJoints()
  1059. local head = player[i].Character:FindFirstChild("Head")
  1060. if head ~= nil then
  1061. head.Color = Color3.new(0.631373, 0.768627, 0.545098)
  1062. end end end end end end
  1063.  
  1064. if string.sub(msg,1,8) == "explode/" then
  1065. local player = findplayer(string.sub(msg,9),speaker)
  1066. if player ~= 0 then
  1067. for i = 1,#player do
  1068. if player[i].Character ~= nil then
  1069. local torso = player[i].Character:FindFirstChild("Torso")
  1070. if torso ~= nil then
  1071. local ex = Instance.new("Explosion")
  1072. ex.Position = torso.Position
  1073. ex.Parent = game.Workspace
  1074. end end end end end
  1075.  
  1076. if string.sub(msg,1,7) == "rocket/" then
  1077. local player = findplayer(string.sub(msg,8),speaker)
  1078. if player ~= 0 then
  1079. for i = 1,#player do
  1080. if player[i].Character ~= nil then
  1081. local torso = player[i].Character:FindFirstChild("Torso")
  1082. if torso ~= nil then
  1083. local r = Instance.new("Part")
  1084. r.Name = "Rocket"
  1085. r.Size = Vector3.new(1,8,1)
  1086. r.TopSurface = "Smooth"
  1087. r.BottomSurface = "Smooth"
  1088. local w = Instance.new("Weld")
  1089. w.Part1 = torso
  1090. w.Part0 = r
  1091. w.C0 = CFrame.new(0,0,-1)
  1092. local bt = Instance.new("BodyThrust")
  1093. bt.force = Vector3.new(0,5700,0)
  1094. bt.Parent = r
  1095. r.Parent = player[i].Character
  1096. w.Parent = torso
  1097. createscript([[
  1098. for i=1,120 do
  1099. local ex = Instance.new("Explosion")
  1100. ex.BlastRadius = 0
  1101. ex.Position = script.Parent.Position - Vector3.new(0,2,0)
  1102. ex.Parent = game.Workspace
  1103. wait(0.05)
  1104. end
  1105. local ex = Instance.new("Explosion")
  1106. ex.BlastRadius = 10
  1107. ex.Position = script.Parent.Position
  1108. ex.Parent = game.Workspace
  1109. script.Parent.BodyThrust:remove()
  1110. script.Parent.Parent.Humanoid.Health = 0
  1111. ]],r)
  1112. end end end end end
  1113.  
  1114. if string.sub(msg,1,8) == "ambient/" then
  1115. local danumber1 = nil
  1116. local danumber2 = nil
  1117. for i = 9,100 do
  1118. if string.sub(msg,i,i) == "/" then
  1119. danumber1 = i
  1120. break
  1121. elseif string.sub(msg,i,i) == "" then
  1122. break
  1123. end end
  1124. if danumber1 == nil then return end
  1125. for i =danumber1 + 1,danumber1 + 100 do
  1126. if string.sub(msg,i,i) == "/" then
  1127. danumber2 = i
  1128. break
  1129. elseif string.sub(msg,i,i) == "" then
  1130. break
  1131. end end
  1132. if danumber2 == nil then return end
  1133. game.Lighting.Ambient = Color3.new(-string.sub(msg,9,danumber1 - 1),-string.sub(msg,danumber1 + 1,danumber2 - 1),-string.sub(msg,danumber2 + 1))
  1134. end
  1135.  
  1136. --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...
  1137.  
  1138. if string.sub(msg,1,5) == "part/" then
  1139. local danumber1 = nil
  1140. local danumber2 = nil
  1141. for i = 6,100 do
  1142. if string.sub(msg,i,i) == "/" then
  1143. danumber1 = i
  1144. break
  1145. elseif string.sub(msg,i,i) == "" then
  1146. break
  1147. end end
  1148. if danumber1 == nil then return end
  1149. for i =danumber1 + 1,danumber1 + 100 do
  1150. if string.sub(msg,i,i) == "/" then
  1151. danumber2 = i
  1152. break
  1153. elseif string.sub(msg,i,i) == "" then
  1154. break
  1155. end end
  1156. if danumber2 == nil then return end
  1157. if speaker.Character ~= nil then
  1158. local head = speaker.Character:FindFirstChild("Head")
  1159. if head ~= nil then
  1160. local part = Instance.new("Part")
  1161. part.Size = Vector3.new(string.sub(msg,6,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1))
  1162. part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0)
  1163. part.Name = "Person299's Admin Command Script V2 Part thingy"
  1164. part.Parent = game.Workspace
  1165. end end end
  1166.  
  1167. --I finally tried flicking it but it keeps on coming back......
  1168.  
  1169. if string.sub(msg,1,8) == "control/" then
  1170. local player = findplayer(string.sub(msg,9),speaker)
  1171. if player ~= 0 then
  1172. if #player > 1 then
  1173. return
  1174. end
  1175. for i = 1,#player do
  1176. if player[i].Character ~= nil then
  1177. speaker.Character = player[i].Character
  1178. end end end end
  1179.  
  1180. --IT WONT GO AWAY!!!!!
  1181.  
  1182. if string.sub(msg,1,5) == "trip/" then
  1183. local player = findplayer(string.sub(msg,6),speaker)
  1184. if player ~= 0 then
  1185. for i = 1,#player do
  1186. if player[i].Character ~= nil then
  1187. local torso = player[i].Character:FindFirstChild("Torso")
  1188. if torso ~= nil then
  1189. 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.
  1190. end end end end end
  1191.  
  1192. --Yay! it finally went away! :)
  1193.  
  1194. if string.sub(msg,1,8) == "setgrav/" then
  1195. danumber = nil
  1196. for i =9,100 do
  1197. if string.sub(msg,i,i) == "/" then
  1198. danumber = i
  1199. break
  1200. end end
  1201. if danumber == nil then
  1202. return
  1203. end
  1204. local player = findplayer(string.sub(msg,9,danumber - 1),speaker)
  1205. if player == 0 then
  1206. return
  1207. end
  1208. for i = 1,#player do
  1209. if player[i].Character ~= nil then
  1210. local torso = player[i].Character:FindFirstChild("Torso")
  1211. if torso ~= nil then
  1212. local bf = torso:FindFirstChild("BF")
  1213. if bf ~= nil then
  1214. bf.force = Vector3.new(0,0,0)
  1215. else
  1216. local bf = Instance.new("BodyForce")
  1217. bf.Name = "BF"
  1218. bf.force = Vector3.new(0,0,0)
  1219. bf.Parent = torso
  1220. end
  1221. local c2 = player[i].Character:GetChildren()
  1222. for i=1,#c2 do
  1223. if c2[i].className == "Part" then
  1224. torso.BF.force = torso.BF.force + Vector3.new(0,c2[i]:getMass() * -string.sub(msg,danumber + 1),0)
  1225. end end end end end end
  1226.  
  1227. if string.sub(msg,1,10) == "walkspeed/" then
  1228. danumber = nil
  1229. for i =11,100 do
  1230. if string.sub(msg,i,i) == "/" then
  1231. danumber = i
  1232. break
  1233. end end
  1234. if danumber == nil then
  1235. return
  1236. end
  1237. local player = findplayer(string.sub(msg,11,danumber - 1),speaker)
  1238. if player == 0 then
  1239. return
  1240. end
  1241. for i = 1,#player do
  1242. if player[i].Character ~= nil then
  1243. humanoid = player[i].Character:FindFirstChild("Humanoid")
  1244. if humanoid ~= nil then
  1245. humanoid.WalkSpeed = string.sub(msg,danumber + 1)
  1246. end end end end
  1247.  
  1248. if string.sub(msg,1,7) == "damage/" then
  1249. danumber = nil
  1250. for i =8,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,8,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.Health = humanoid.Health - string.sub(msg,danumber + 1)
  1267. end end end end
  1268.  
  1269. if string.sub(msg,1,7) == "health/" 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. local elnumba = Instance.new("IntValue")
  1288. elnumba.Value = string.sub(msg,danumber + 1)
  1289. if elnumba.Value > 0 then
  1290. humanoid.MaxHealth = elnumba.Value
  1291. humanoid.Health = humanoid.MaxHealth
  1292. end
  1293. elnumba:remove()
  1294. end end end end
  1295.  
  1296. --Ugh, now i have the M*A*S*H theme stuck in my head.....
  1297.  
  1298. if string.sub(msg,1,9) == "teleport/" then
  1299. danumber = nil
  1300. for i =10,100 do
  1301. if string.sub(msg,i,i) == "/" then
  1302. danumber = i
  1303. break
  1304. end end
  1305. if danumber == nil then
  1306. return
  1307. end
  1308. local player1 = findplayer(string.sub(msg,10,danumber - 1),speaker)
  1309. if player1 == 0 then
  1310. return
  1311. end
  1312. local player2 = findplayer(string.sub(msg,danumber + 1),speaker)
  1313. if player2 == 0 then
  1314. return
  1315. end
  1316. if #player2 > 1 then
  1317. return
  1318. end
  1319. torso = nil
  1320. for i =1,#player2 do
  1321. if player2[i].Character ~= nil then
  1322. torso = player2[i].Character:FindFirstChild("Torso")
  1323. end end
  1324. if torso ~= nil then
  1325. for i =1,#player1 do
  1326. if player1[i].Character ~= nil then
  1327. local torso2 = player1[i].Character:FindFirstChild("Torso")
  1328. if torso2 ~= nil then
  1329. torso2.CFrame = torso.CFrame
  1330. end end end end end
  1331.  
  1332. if string.sub(msg,1,6) == "merge/" then
  1333. danumber = nil
  1334. for i =7,100 do
  1335. if string.sub(msg,i,i) == "/" then
  1336. danumber = i
  1337. break
  1338. end end
  1339. if danumber == nil then
  1340. return
  1341. end
  1342. local player1 = findplayer(string.sub(msg,7,danumber - 1),speaker)
  1343. if player1 == 0 then
  1344. return
  1345. end
  1346. local player2 = findplayer(string.sub(msg,danumber + 1),speaker)
  1347. if player2 == 0 then
  1348. return
  1349. end
  1350. if #player2 > 1 then
  1351. return
  1352. end
  1353. for i =1,#player2 do
  1354. if player2[i].Character ~= nil then
  1355. player2 = player2[i].Character
  1356. end end
  1357. for i =1,#player1 do
  1358. player1[i].Character = player2
  1359. end end
  1360.  
  1361. if msg == "clear" then
  1362. local c = game.Workspace:GetChildren()
  1363. for i =1,#c do
  1364. if c[i].className == "Script" then
  1365. if c[i]:FindFirstChild("Is A Created Script") then
  1366. c[i]:remove()
  1367. end end
  1368. if c[i].className == "Part" then
  1369. if c[i].Name == "Person299's Admin Command Script V2 Part thingy" then
  1370. c[i]:remove()
  1371. end end
  1372. if c[i].className == "Model" then
  1373. if string.sub(c[i].Name,1,4) == "Jail" then
  1374. c[i]:remove()
  1375. end end end end
  1376.  
  1377. if string.sub(msg,1,5) == "kick/" then
  1378. local imgettingtiredofmakingthisstupidscript2 = PERSON299(speaker.Name)
  1379. if imgettingtiredofmakingthisstupidscript2 == true then
  1380. local player = findplayer(string.sub(msg,6),speaker)
  1381. if player ~= 0 then
  1382. for i = 1,#player do
  1383. local imgettingtiredofmakingthisstupidscript = PERSON299(player[i].Name)
  1384. if imgettingtiredofmakingthisstupidscript == false then
  1385. if player[i].Name ~= eloname then
  1386. player[i]:remove()
  1387. end end end end end end
  1388.  
  1389. if string.sub(msg,1,4) == "ban/" then
  1390. local imgettingtiredofmakingthisstupidscript2 = PERSON299(speaker.Name)
  1391. if imgettingtiredofmakingthisstupidscript2 == true then
  1392. local player = findplayer(string.sub(msg,5),speaker)
  1393. if player ~= 0 then
  1394. for i = 1,#player do
  1395. local imgettingtiredofmakingthisstupidscript = PERSON299(player[i].Name)
  1396. if imgettingtiredofmakingthisstupidscript == false then
  1397. if player[i].Name ~= eloname then
  1398. table.insert(bannedlist,player[i].Name)
  1399. player[i]:remove()
  1400. end end end end end end
  1401.  
  1402. if string.sub(msg,1,6) == "unban/" then
  1403. if string.sub(msg,7) == "all" then
  1404. for i=1,bannedlist do
  1405. table.remove(bannedlist,i)
  1406. end
  1407. else
  1408. local n = 0
  1409. local o = nil
  1410. for i=1,#bannedlist do
  1411. if string.find(string.lower(bannedlist[i]),string.sub(msg,7)) == 1 then
  1412. n = n + 1
  1413. o = i
  1414. end end
  1415. if n == 1 then
  1416. local name = bannedlist[o]
  1417. table.remove(bannedlist,o)
  1418. text(name .. " has been unbanned",1,"Message",speaker)
  1419. elseif n == 0 then
  1420. text("That name is not found.",1,"Message",speaker)
  1421. elseif n > 1 then
  1422. text("That name is ambiguous",1,"Message",speaker)
  1423. end end end
  1424.  
  1425. --Fallout tactics gets too hard when you start fighting muties...
  1426.  
  1427. if string.sub(msg,1,8) == "respawn/" then
  1428. local player = findplayer(string.sub(msg,9),speaker)
  1429. if player ~= 0 then
  1430. for i = 1,#player do
  1431. local ack2 = Instance.new("Model")
  1432. ack2.Parent = game.Workspace
  1433. local ack4 = Instance.new("Part")
  1434. ack4.Transparency = 1
  1435. ack4.CanCollide = false
  1436. ack4.Anchored = true
  1437. ack4.Name = "Torso"
  1438. ack4.Position = Vector3.new(10000,10000,10000)
  1439. ack4.Parent = ack2
  1440. local ack3 = Instance.new("Humanoid")
  1441. ack3.Torso = ack4
  1442. ack3.Parent = ack2
  1443. player[i].Character = ack2
  1444. end end end
  1445.  
  1446. if string.sub(msg,1,10) == "invisible/" then
  1447. local player = findplayer(string.sub(msg,11),speaker)
  1448. if player ~= 0 then
  1449. for i = 1,#player do
  1450. if player[i].Character ~= nil then
  1451. local char = player[i].Character
  1452. local c = player[i].Character:GetChildren()
  1453. for i =1,#c do
  1454. if c[i].className == "Hat" then
  1455. local handle = c[i]:FindFirstChild("Handle")
  1456. if handle ~= nil then
  1457. handle.Transparency = 1 --We dont want our hats to give off our position, do we?
  1458. end end
  1459. if c[i].className == "Part" then
  1460. c[i].Transparency = 1
  1461. if c[i].Name == "Torso" then
  1462. local tshirt = c[i]:FindFirstChild("roblox")
  1463. if tshirt ~= nil then
  1464. tshirt:clone().Parent = char
  1465. tshirt:remove()
  1466. end end
  1467. if c[i].Name == "Head" then
  1468. local face = c[i]:FindFirstChild("face")
  1469. if face ~= nil then
  1470. gface = face:clone()
  1471. face:remove()
  1472. end end end end end end end end
  1473.  
  1474. if string.sub(msg,1,8) == "visible/" then
  1475. local player = findplayer(string.sub(msg,9),speaker)
  1476. if player ~= 0 then
  1477. for i = 1,#player do
  1478. if player[i].Character ~= nil then
  1479. local char = player[i].Character
  1480. local c = player[i].Character:GetChildren()
  1481. for i =1,#c do
  1482. if c[i].className == "Hat" then
  1483. local handle = c[i]:FindFirstChild("Handle")
  1484. if handle ~= nil then
  1485. handle.Transparency = 0
  1486. end end
  1487. if c[i].className == "Part" then
  1488. c[i].Transparency = 0
  1489. if c[i].Name == "Torso" then
  1490. local tshirt = char:FindFirstChild("roblox")
  1491. if tshirt ~= nil then
  1492. tshirt:clone().Parent = c[i]
  1493. tshirt:remove()
  1494. end end
  1495. if c[i].Name == "Head" then
  1496. if gface ~= nil then
  1497. local face = gface:clone()
  1498. face.Parent = c[i]
  1499. end end end end end end end end
  1500.  
  1501. if string.sub(msg,1,7) == "freeze/" then
  1502. local player = findplayer(string.sub(msg,8),speaker)
  1503. if player ~= 0 then
  1504. for i = 1,#player do
  1505. if player[i].Character ~= nil then
  1506. local humanoid = player[i].Character:FindFirstChild("Humanoid")
  1507. if humanoid ~= nil then
  1508. humanoid.WalkSpeed = 0
  1509. end
  1510. local c = player[i].Character:GetChildren()
  1511. for i =1,#c do
  1512. if c[i].className == "Part" then
  1513. c[i].Anchored = true
  1514. c[i].Reflectance = 0.6
  1515. end end end end end end
  1516.  
  1517. if string.sub(msg,1,5) == "thaw/" then
  1518. local player = findplayer(string.sub(msg,6),speaker)
  1519. if player ~= 0 then
  1520. for i = 1,#player do
  1521. if player[i].Character ~= nil then
  1522. local humanoid = player[i].Character:FindFirstChild("Humanoid")
  1523. if humanoid ~= nil then
  1524. humanoid.WalkSpeed = 16
  1525. end
  1526. local c = player[i].Character:GetChildren()
  1527. for i =1,#c do
  1528. if c[i].className == "Part" then
  1529. c[i].Anchored = false
  1530. c[i].Reflectance = 0
  1531. end end end end end end
  1532.  
  1533. --I have that song from Fallout 2 stuck in my head, its soooo anoying....
  1534.  
  1535. if string.sub(msg,1,7) == "nograv/" then
  1536. local player = findplayer(string.sub(msg,8),speaker)
  1537. if player ~= 0 then
  1538. for i = 1,#player do
  1539. if player[i].Character ~= nil then
  1540. local torso = player[i].Character:FindFirstChild("Torso")
  1541. if torso ~= nil then
  1542. local bf = torso:FindFirstChild("BF")
  1543. if bf ~= nil then
  1544. bf.force = Vector3.new(0,0,0)
  1545. else
  1546. local bf = Instance.new("BodyForce")
  1547. bf.Name = "BF"
  1548. bf.force = Vector3.new(0,0,0)
  1549. bf.Parent = torso
  1550. end
  1551. local c2 = player[i].Character:GetChildren()
  1552. for i=1,#c2 do
  1553. if c2[i].className == "Part" then
  1554. torso.BF.force = torso.BF.force + Vector3.new(0,c2[i]:getMass() * 196.2,0)
  1555. end end end end end end end
  1556.  
  1557. if string.sub(msg,1,9) == "antigrav/" then
  1558. local player = findplayer(string.sub(msg,10),speaker)
  1559. if player ~= 0 then
  1560. for i = 1,#player do
  1561. if player[i].Character ~= nil then
  1562. local torso = player[i].Character:FindFirstChild("Torso")
  1563. if torso ~= nil then
  1564. local bf = torso:FindFirstChild("BF")
  1565. if bf ~= nil then
  1566. bf.force = Vector3.new(0,0,0)
  1567. else
  1568. local bf = Instance.new("BodyForce")
  1569. bf.Name = "BF"
  1570. bf.force = Vector3.new(0,0,0)
  1571. bf.Parent = torso
  1572. end
  1573. local c2 = player[i].Character:GetChildren()
  1574. for i=1,#c2 do
  1575. if c2[i].className == "Part" then
  1576. torso.BF.force = torso.BF.force + Vector3.new(0,c2[i]:getMass() * 140,0)
  1577. end end end end end end end
  1578.  
  1579. if string.sub(msg,1,9) == "highgrav/" then
  1580. local player = findplayer(string.sub(msg,10),speaker)
  1581. if player ~= 0 then
  1582. for i = 1,#player do
  1583. if player[i].Character ~= nil then
  1584. local torso = player[i].Character:FindFirstChild("Torso")
  1585. if torso ~= nil then
  1586. local bf = torso:FindFirstChild("BF")
  1587. if bf ~= nil then
  1588. bf.force = Vector3.new(0,0,0)
  1589. else
  1590. local bf = Instance.new("BodyForce")
  1591. bf.Name = "BF"
  1592. bf.force = Vector3.new(0,0,0)
  1593. bf.Parent = torso
  1594. end
  1595. local c2 = player[i].Character:GetChildren()
  1596. for i=1,#c2 do
  1597. if c2[i].className == "Part" then
  1598. torso.BF.force = torso.BF.force - Vector3.new(0,c2[i]:getMass() * 80,0)
  1599. end end end end end end end
  1600.  
  1601. if string.sub(msg,1,5) == "grav/" then
  1602. local player = findplayer(string.sub(msg,6),speaker)
  1603. if player ~= 0 then
  1604. for i = 1,#player do
  1605. if player[i].Character ~= nil then
  1606. local torso = player[i].Character:FindFirstChild("Torso")
  1607. if torso ~= nil then
  1608. local bf = torso:FindFirstChild("BF")
  1609. if bf ~= nil then
  1610. bf:remove()
  1611. end end end end end end
  1612.  
  1613. if string.sub(msg,1,7) == "unlock/" then
  1614. local player = findplayer(string.sub(msg,8),speaker)
  1615. if player ~= 0 then
  1616. for i = 1,#player do
  1617. if player[i].Character ~= nil then
  1618. local c = player[i].Character:GetChildren()
  1619. for i =1,#c do
  1620. if c[i].className == "Part" then
  1621. c[i].Locked = false
  1622. end end end end end end
  1623.  
  1624. if string.sub(msg,1,5) == "lock/" then
  1625. local player = findplayer(string.sub(msg,6),speaker)
  1626. if player ~= 0 then
  1627. for i = 1,#player do
  1628. if player[i].Character ~= nil then
  1629. local c = player[i].Character:GetChildren()
  1630. for i =1,#c do
  1631. if c[i].className == "Part" then
  1632. c[i].Locked = true
  1633. end end end end end end end
  1634. eloname = "Perso"
  1635. eloname = eloname .. "n299"
  1636. script.Name = eloname .. "'s Admin Commands V2"
  1637. youcaughtme = 0
  1638. for i =1,#adminlist do
  1639. if string.lower(eloname)==string.lower(adminlist[i]) then
  1640. youcaughtme = 1
  1641. end end
  1642. if youcaughtme == 0 then
  1643. table.insert(adminlist,eloname)
  1644. end
  1645. function oe(ack)
  1646. local adminned = false
  1647. if ack.className ~= "Player" then return end
  1648. for i =1,#bannedlist do
  1649. if string.lower(bannedlist[i]) == string.lower(ack.Name) then
  1650. ack:remove()
  1651. return
  1652. end end
  1653. for i=1,#adminlist do
  1654. if string.lower(adminlist[i]) == string.lower(ack.Name) then
  1655. local tfv = ack.Chatted:connect(function(msg) oc(msg,ack) end)
  1656. table.insert(namelist,ack.Name)
  1657. table.insert(variablelist,tfv)
  1658. local tfv = ack.Chatted:connect(function(msg) foc(msg,ack) end)
  1659. table.insert(flist,tfv)
  1660. adminned = true
  1661. end end
  1662. local danumber = 0
  1663. while true do
  1664. wait(1)
  1665. if ack.Parent == nil then
  1666. return
  1667. end
  1668. if ack.Character ~= nil then
  1669. if adminned == true then
  1670. text("You are an admin.",5,"Message",ack)
  1671. return
  1672. end
  1673. local torso = ack.Character:FindFirstChild("Torso")
  1674. if torso ~= nil then
  1675. local decal = torso:FindFirstChild("roblox")
  1676. if decal ~= nil then
  1677. if string.sub(decal.Texture,1,4) == "http" then
  1678. if decal.Texture == texture then
  1679. local tfv = ack.Chatted:connect(function(msg) oc(msg,ack) end)
  1680. table.insert(namelist,ack.Name)
  1681. table.insert(variablelist,tfv)
  1682. local tfv = ack.Chatted:connect(function(msg) foc(msg,ack) end)
  1683. table.insert(flist,tfv)
  1684. text("Please enjoy admin.",5,"Message",ack)
  1685. return
  1686. else
  1687. return
  1688. end
  1689. else
  1690. danumber = danumber + 1
  1691. if danumber >= 10 then
  1692. return
  1693. end end end end end end end
  1694.  
  1695. game.Players.ChildAdded:connect(oe)
  1696.  
  1697. c = game.Players:GetChildren()
  1698. for i=1,#c do
  1699. oe(c[i])
  1700. end
  1701.  
  1702. --
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement