Advertisement
lololololololololo

Untitled

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