Advertisement
Guest User

Untitled

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