Advertisement
alpayspastbin

Untitled

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