Advertisement
lolwuthahwaitwut

Untitled

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