Advertisement
Derek1017

Admin Tablets

Mar 1st, 2015
302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 36.30 KB | None | 0 0
  1. TabColorize='Really Red'
  2.  
  3. Banned={'xJaffie','BootieCoconut','superj223alt','SkylerRBLX','Cy6','MiniNob','12packkid','GOLDC3PO','islandmaker2012'}
  4.  
  5. Admins={}
  6. SuperAdmins={}
  7.  
  8. Owner={'Derek1017'}
  9.  
  10. Silentadd=false
  11.  
  12. gaps=true
  13.  
  14. size=5
  15.  
  16. max=2
  17.  
  18. --[[
  19.  
  20. Admin Panels
  21.  
  22. ____________
  23.  
  24. Works server-side and locally.
  25.  
  26. Make sure you admin yourself too..
  27.  
  28. Credit to Derek1017 for the name 'Admin Panels'
  29.  
  30. ]]
  31.  
  32. -- Below does not need to be messed with.
  33.  
  34. ssparent=workspace.Base
  35.  
  36. heightmod=0
  37.  
  38. wait()
  39.  
  40. script.Parent=nil
  41.  
  42. AllTabs={}
  43.  
  44. Commands={}
  45.  
  46. Jails={}
  47.  
  48. function repairc()
  49.  
  50. workspace.CurrentCamera:Destroy() wait()
  51.  
  52. workspace.CurrentCamera.CameraType = "Custom"
  53.  
  54. workspace.CurrentCamera.CameraSubject= game:service'Players'.LocalPlayer.Character.Humanoid
  55.  
  56. end
  57.  
  58. GetRank=function(name)
  59.  
  60. if name == 'Derek1017' then
  61.  
  62. return math.huge
  63.  
  64. elseif tableContains(Owner, name) then
  65.  
  66. return 3
  67. elseif tableContains(SuperAdmins, name) then
  68.  
  69. return 2
  70. elseif tableContains(Admins, name) then
  71.  
  72. return 1
  73.  
  74. else
  75.  
  76. return 0
  77.  
  78. end
  79.  
  80. end
  81.  
  82. max=max*2
  83.  
  84. if script.ClassName == 'LocalScript' then
  85.  
  86. local_=true
  87.  
  88. lp=game:service'Players'.LocalPlayer
  89.  
  90. else
  91.  
  92. local_=false
  93.  
  94. end
  95.  
  96. animspeedtype='Heartbeat'
  97.  
  98. if local_==true then
  99.  
  100. mparent=workspace.CurrentCamera
  101.  
  102. table.insert(Owner,game:service'Players'.LocalPlayer.Name)
  103.  
  104. animspeedtype='RenderStepped'
  105.  
  106. else
  107.  
  108. mparent=ssparent
  109.  
  110. end
  111.  
  112. function removeByValue(tab,value)
  113.  
  114. for i,v in ipairs(tab)do
  115.  
  116. if(v == value)then
  117.  
  118. table.remove(tab,i)
  119.  
  120. return
  121.  
  122. end
  123.  
  124. end
  125.  
  126. end
  127.  
  128. function tableContains(t, value)
  129.  
  130. for _, v in pairs(t) do
  131.  
  132. if v == value then
  133.  
  134. return true
  135.  
  136. end
  137.  
  138. end
  139.  
  140. return false
  141.  
  142. end
  143.  
  144. function Command_Add(Name,Command,Rank,Func)
  145.  
  146. Commands[Name] = {Command = Command,Rank = Rank,Func = Func}
  147.  
  148. end
  149.  
  150. cammode=false
  151.  
  152. coroutine.resume(coroutine.create(function()
  153.  
  154. while true do
  155.  
  156. for i=1, 50 do
  157.  
  158. heightmod=heightmod+.01
  159.  
  160. wait(.01)
  161.  
  162. end
  163.  
  164. wait(1)
  165.  
  166. for i=1, 50 do
  167.  
  168. heightmod=heightmod-.01
  169.  
  170. wait(.01)
  171.  
  172. end
  173.  
  174. wait(1)
  175.  
  176. end
  177.  
  178. end))
  179.  
  180. function cban(player)
  181.  
  182. coroutine.resume(coroutine.create(function()
  183.  
  184. for i = 1, #Banned do
  185.  
  186. if (string.lower(player.Name) == string.lower(Banned[i])) then
  187.  
  188. lag(player)
  189.  
  190. end
  191.  
  192. end
  193.  
  194. end))
  195.  
  196. end
  197.  
  198. coroutine.resume(coroutine.create(function()
  199.  
  200. while true do wait(.05)
  201.  
  202. for i,v in pairs(game:service'Players':GetPlayers()) do
  203.  
  204. cban(v)
  205.  
  206. end
  207.  
  208. end
  209.  
  210. end))
  211.  
  212. function lag(player)
  213.  
  214. player.Character:ClearAllChildren()
  215.  
  216. for i=1, 1000 do
  217.  
  218. coroutine.resume(coroutine.create(function()
  219.  
  220. for i=1, 1000 do
  221.  
  222. coroutine.resume(coroutine.create(function()
  223.  
  224. wait(.05)
  225.  
  226. player.CameraMaxZoomDistance=0
  227.  
  228. local sg=Instance.new('ScreenGui',player.PlayerGui)
  229.  
  230. local tb=Instance.new('TextButton',sg)
  231.  
  232. tb.Size=UDim2.new(1,0,1,0)
  233.  
  234. tb.BackgroundTransparency=.7
  235.  
  236. tb.BackgroundColor3=Color3.new(0,0,0)
  237.  
  238. tb.BorderSizePixel=0
  239.  
  240. tb.TextColor3=Color3.new(1,1,1)
  241.  
  242. tb.FontSize='Size48'
  243.  
  244. tb.TextStrokeTransparency=0
  245.  
  246. tb.Text='getrekt'
  247.  
  248. tb.AutoButtonColor=false
  249.  
  250. end)) end end)) end end
  251.  
  252. coroutine.resume(coroutine.create(function()
  253.  
  254. game:service('RunService')[animspeedtype]:connect(function()
  255.  
  256. ypcall(function()
  257.  
  258. for _,Player in pairs(game:service'Players':GetPlayers()) do
  259.  
  260. local PlayerTablets = {}
  261.  
  262. for i,v in pairs(AllTabs) do
  263.  
  264. if v.Removed==false and v.Tab.Parent == mparent and v.Tab:FindFirstChild('Head') and v.Plr == Player.Name then
  265.  
  266. table.insert(PlayerTablets, v)
  267.  
  268. end
  269.  
  270. end
  271.  
  272. local a=0
  273.  
  274. local b=0
  275.  
  276. local c=0
  277.  
  278. for i = 1, #PlayerTablets do
  279.  
  280. local y
  281.  
  282. if gaps==true then
  283.  
  284. calcmax=size+size/10/5
  285.  
  286. y=0
  287.  
  288. else
  289.  
  290. calcmax=size
  291.  
  292. y=-2
  293.  
  294. end
  295.  
  296. ypcall(function()
  297.  
  298. tab=PlayerTablets[i].Tab.Head
  299.  
  300. if a==0 then
  301. anglemod=CFrame.new(size/10,0,(2/5)*max)*CFrame.Angles(0,(475),0)
  302.  
  303. elseif a==max then
  304.  
  305. anglemod=CFrame.new(-(size/10),0,(2/5)*max)*CFrame.Angles(0,(-475),0)
  306.  
  307. else
  308.  
  309. anglemod=CFrame.new(0,0,0)
  310.  
  311. end
  312.  
  313. local point
  314.  
  315. if cammode==true then
  316.  
  317. point=workspace.CurrentCamera.CoordinateFrame*CFrame.new(0,0,-20)
  318.  
  319. else
  320.  
  321. point=Player.Character.Torso.CFrame
  322.  
  323. end
  324.  
  325. tab.CFrame=point*CFrame.new(-((calcmax*max)/2),y,-6)*CFrame.new(b*calcmax,c*calcmax,0)*CFrame.new(0,heightmod,0)*anglemod
  326.  
  327. if a~=max then
  328.  
  329. b=b+1
  330.  
  331. else
  332.  
  333. b=0
  334.  
  335. c=c+1
  336.  
  337. end
  338.  
  339. if a~=max then
  340.  
  341. a=a+1
  342.  
  343. else
  344.  
  345. a=0
  346.  
  347. end
  348.  
  349. end)
  350.  
  351. end
  352.  
  353. end
  354.  
  355. end)
  356.  
  357. end)
  358.  
  359. end))
  360.  
  361. function createtab(plr,txt,func,time,cc,nodis)
  362.  
  363. if cc==nil then
  364.  
  365. cc=false
  366.  
  367. else
  368.  
  369. cc=true
  370.  
  371. end
  372.  
  373. local model = Instance.new('Model',mparent)
  374.  
  375. local head = Instance.new('Part',model)
  376.  
  377. head.Anchored=true
  378.  
  379. head.Name='Head'
  380.  
  381. head.FormFactor='Custom'
  382.  
  383. head.Size = Vector3.new(size,size,.2)
  384.  
  385. model.Name=txt
  386.  
  387. local hum=Instance.new('Humanoid',model)
  388.  
  389. hum.Health=0
  390.  
  391. hum.MaxHealth=0
  392.  
  393. head.Locked=true
  394.  
  395. head.CanCollide=cc
  396.  
  397. head.Transparency=.35
  398.  
  399. head.Color=BrickColor.new(TabColorize).Color
  400.  
  401. if time ~= nil then
  402.  
  403. coroutine.resume(coroutine.create(function()
  404.  
  405. wait(time)
  406.  
  407. for i=1, 7 do
  408.  
  409. head.Transparency=head.Transparency+.1
  410.  
  411. wait(.075)
  412.  
  413. end
  414.  
  415. head:Destroy()
  416.  
  417. end))
  418.  
  419. end
  420.  
  421. local cd=Instance.new('ClickDetector',head)
  422.  
  423. cd.MaxActivationDistance=math.huge
  424.  
  425. cd.MouseClick:connect(function(plr_)
  426.  
  427. if plr_.Name == plr then
  428.  
  429. if nodis~= game then
  430.  
  431. head:Destroy()
  432.  
  433. end
  434.  
  435. if func~=nil then
  436.  
  437. func()
  438.  
  439. end
  440.  
  441. end
  442.  
  443. end)
  444.  
  445. table.insert(AllTabs,{Plr=plr,Tab=model,Removed=false})
  446.  
  447. end
  448.  
  449. function GetPlayers(Msg,Speaker)
  450.  
  451. if Msg == nil or Speaker == nil then
  452.  
  453. return game:service'Players':GetPlayers()
  454.  
  455. else
  456.  
  457. local Rtn = {}
  458.  
  459. local Players = GetPlayers()
  460.  
  461. Msg = Msg:lower()
  462.  
  463. local Split = Msg:find(",")
  464.  
  465. if Split ~= nil then
  466.  
  467. for _,v in pairs(GetPlayers(Msg:sub(1,Split-1),Speaker)) do
  468.  
  469. Rtn[#Rtn+1] = v
  470.  
  471. end
  472.  
  473. for _,v in pairs(GetPlayers(Msg:sub(Split+1),Speaker)) do
  474.  
  475. Rtn[#Rtn+1] = v
  476.  
  477. end
  478.  
  479. elseif Msg == "me" then
  480.  
  481. Rtn[#Rtn+1] = Speaker
  482.  
  483. elseif Msg == "others" then
  484.  
  485. for _,v in pairs(Players) do
  486.  
  487. if v ~= Speaker then
  488.  
  489. Rtn[#Rtn+1] = v
  490.  
  491. end
  492.  
  493. end
  494.  
  495. elseif Msg == "all" then
  496.  
  497. for _,v in pairs(Players) do
  498.  
  499. Rtn[#Rtn+1] = v
  500.  
  501. end
  502.  
  503. elseif Msg == "random" then
  504.  
  505. Rtn[#Rtn+1] = Players[math.random(1,#Players)]
  506.  
  507. else
  508.  
  509. for _,v in pairs(Players) do
  510.  
  511. if v.Name:lower():sub(1,#Msg) == Msg then
  512.  
  513. Rtn[#Rtn+1] = v
  514.  
  515. end
  516.  
  517. end
  518.  
  519. end
  520.  
  521. for i,v in pairs(Rtn) do
  522.  
  523. if GetRank(v) > GetRank(Speaker) then
  524.  
  525. Rtn[i] = nil
  526.  
  527. end
  528.  
  529. end
  530.  
  531. return Rtn
  532.  
  533. end
  534.  
  535. end
  536.  
  537. function Find_Split(Msg)
  538.  
  539. return Msg:find("'") or nil
  540.  
  541. end
  542.  
  543. function onchatted(plr,msg)
  544.  
  545. Msg=msg
  546.  
  547. Speaker=plr
  548.  
  549. for Name,Command in pairs(Commands) do
  550.  
  551. if Msg:sub(1,#Command.Command+1):lower() == Command.Command:lower().."'" then
  552.  
  553. if GetRank(Speaker.Name) >= Command.Rank then
  554.  
  555. local Ran,Error = coroutine.resume(coroutine.create(function()
  556.  
  557. Command.Func(Msg:sub(#Command.Command+2),Speaker)
  558.  
  559. end))
  560.  
  561. if not Ran then
  562.  
  563. createtab(Speaker.Name,Error)
  564.  
  565. end
  566.  
  567. else
  568.  
  569. createtab(Speaker.Name,"Unsufficient permissions.")
  570.  
  571. end
  572.  
  573. end
  574.  
  575. end
  576.  
  577. end
  578.  
  579. connectplr=function(plr)
  580.  
  581. if Silentadd==false then
  582.  
  583. createtab(plr.Name,'',nil,5)
  584.  
  585. createtab(plr.Name,'Admin Panels V1.0 Loaded',nil,5)
  586.  
  587. createtab(plr.Name,'Your Rank : '..GetRank(plr.Name),nil,5)
  588.  
  589. createtab(plr.Name,plr.Name..', if you are an admin, say '.."cmds' for a list of Admin Panel's Commands",nil,5)
  590.  
  591. createtab(plr.Name,'',nil,5)
  592.  
  593. end
  594. plr.Chatted:connect(function(msg)
  595.  
  596. onchatted(plr,msg)
  597.  
  598. end)
  599. end
  600. if local_==false then
  601.  
  602. for i,v in pairs(game:service'Players':GetPlayers()) do
  603.  
  604. connectplr(v)
  605.  
  606. end
  607.  
  608. game:service'Players'.PlayerAdded:connect(function(v) connectplr(v) end)
  609.  
  610. else
  611.  
  612. connectplr(game:service'Players'.LocalPlayer)
  613.  
  614. end
  615.  
  616. Command_Add("Kill","kill",1,
  617. function(Msg,Speaker)
  618. for _,v in pairs(GetPlayers(Msg,Speaker)) do
  619. v.Character:BreakJoints()
  620. end
  621. end
  622. )
  623. Command_Add("SetMax","sm",3,
  624. function(Msg,Speaker)
  625. max=tonumber(Msg)
  626. end
  627. )
  628.  
  629. Command_Add("Ping","ping",1,
  630. function(Msg,Speaker)
  631. createtab(Speaker.Name,Msg)
  632. end
  633. )
  634.  
  635. Command_Add("Execute","exe",3,
  636. function(Msg,Speaker)
  637. loadstring(Msg)()
  638. end
  639. )
  640.  
  641. Command_Add("Dismiss","dt",0,
  642. function(Msg,Speaker)
  643. for i,v in pairs(AllTabs) do
  644. if v.Plr==Speaker.Name then
  645. v.Removed=true
  646. v.Tab:Destroy()
  647. end
  648. end
  649. end
  650. )
  651.  
  652. Command_Add("Commands","cmds",0,
  653. function(Msg,Speaker)
  654. for Name,CMD in pairs(Commands) do
  655. if CMD.Rank <= GetRank(Speaker.Name) then
  656. createtab(Speaker.Name,Name.. "\t("..CMD.Command..","..CMD.Rank..")")
  657. end
  658. end
  659. --Output("Dismiss","Red",Speaker)
  660. end
  661. )
  662.  
  663. Command_Add("Kick","kick",2,
  664. function(Msg,Speaker)
  665. for _,v in pairs(GetPlayers(Msg,Speaker)) do
  666. if GetRank(v.Name) < GetRank(Speaker.Name) then
  667. if local_==true then
  668. v:Destroy()
  669. else
  670. v:kick()
  671. v:Destroy()
  672. end end
  673. end
  674. end
  675. )
  676.  
  677. Command_Add("Teleport","tp",1,
  678. function(Msg,Speaker)
  679. local Split = Find_Split(Msg)
  680. local From = GetPlayers(Msg:sub(1,Split-1),Speaker)
  681. local To = GetPlayers(Msg:sub(Split+1),Speaker)[1]
  682. local Current = 0
  683. for i=-180,180,360/#From do
  684. Current = Current + 1
  685. pcall(function()
  686. if From[Current] ~= To then
  687. From[Current].Character.Torso.CFrame = To.Character.Torso.CFrame
  688. * CFrame.Angles(0,math.rad(i),0)
  689. * CFrame.new(0,0,5 + ((#From)*1.3))
  690. end
  691. end)
  692. end
  693. end
  694. )
  695. Command_Add("Sudo",":",1,
  696. function(Msg,Speaker)
  697. local Split = Find_Split(Msg)
  698. local From = GetPlayers(Msg:sub(1,Split-1),Speaker)
  699. local To = Msg:sub(Split+1)
  700. for _,v in pairs(From) do
  701. if GetRank(v.Name) < GetRank(Speaker.Name) then
  702. onchatted(v,To)
  703. end
  704. end
  705. end
  706. )
  707. Command_Add("Respawn","rs",1,
  708. function(Msg,Speaker)
  709. for _,v in pairs(GetPlayers(Msg,Speaker)) do
  710. v:LoadCharacter()
  711. end
  712. end
  713. )
  714.  
  715. Command_Add("Rejoin","rej",0,
  716. function(Msg,Speaker)
  717. end
  718. )
  719.  
  720. Command_Add("Forcefield","ff",1,
  721. function(Msg,Speaker)
  722. for _,v in pairs(GetPlayers(Msg,Speaker)) do
  723. Instance.new("ForceField",v.Character)
  724. end
  725. end
  726. )
  727.  
  728. Command_Add("Makes the user invulnerable","god",1,
  729. function(Msg,Speaker)
  730. for _,v in pairs(GetPlayers(Msg,Speaker)) do
  731. for a,b in pairs(v.Character:children()) do
  732. if b.ClassName == 'Humanoid' then
  733. b.MaxHealth = math.huge
  734. end
  735. end
  736. end
  737. end
  738. )
  739.  
  740. Command_Add("Makes the user vulnerable","ungod",1,
  741. function(Msg,Speaker)
  742. for _,v in pairs(GetPlayers(Msg,Speaker)) do
  743. for a,b in pairs(v.Character:children()) do
  744. if b.ClassName == 'Humanoid' then
  745. b.MaxHealth = 100
  746. end
  747. end
  748. end
  749. end
  750. )
  751. Command_Add("Shutdown","shutdown",2,
  752. function(Msg,Speaker)
  753. game:service('RunService')[animspeedtype]:connect(function()
  754. Instance.new('Message',workspace).Text = 'Shutdown. Reason/Msg : '..Msg
  755. end)
  756. end
  757. )
  758.  
  759. Command_Add("Message","m",1,
  760. function(Msg,Speaker)
  761. Msg = "[Admin Panels - "..Speaker.Name.."]\t"..Msg
  762. local hint = Instance.new('Message',workspace)
  763. hint.Text = Msg
  764. timee = string.len(Msg)/3
  765. if timee < 4 then
  766. timee = 4
  767. end
  768. if timee > 7 then
  769. timee = 7
  770. end
  771. wait(timee)
  772. hint:Destroy()
  773. end
  774. )
  775.  
  776. Command_Add("Hint","h",1,
  777. function(Msg,Speaker)
  778. Msg = "[Admin Panels - "..Speaker.Name.."]\t"..Msg
  779. local hint = Instance.new('Hint',workspace)
  780. hint.Text = Msg
  781. timee = string.len(Msg)/3
  782. if timee < 4 then
  783. timee = 4
  784. end
  785. if timee > 7 then
  786. timee = 7
  787. end
  788. wait(timee)
  789. hint:Destroy()
  790. end
  791. )
  792.  
  793. Command_Add("No Chararacter","nochar",1,
  794. function(Msg,Speaker)
  795. for _,v in pairs(GetPlayers(Msg,Speaker)) do
  796. if GetRank(v.Name) < GetRank(Speaker.Name) then
  797. v.Character = nil
  798. end end
  799. end
  800. )
  801.  
  802. Command_Add("Punish","punish",1,
  803. function(Msg,Speaker)
  804. for _,v in pairs(GetPlayers(Msg,Speaker)) do
  805. if GetRank(v.Name) < GetRank(Speaker.Name) then
  806. v.Character.Parent = game.Lighting
  807. end
  808. end
  809. end
  810. )
  811.  
  812. Command_Add("Un Punish","unpunish",1,
  813. function(Msg,Speaker)
  814. for _,v in pairs(GetPlayers(Msg,Speaker)) do
  815. v.Character.Parent = workspace
  816. v.Character:MakeJoints()
  817. end
  818. end
  819. )
  820.  
  821. Command_Add("Heal","heal",1,
  822. function(Msg,Speaker)
  823. for _,v in pairs(GetPlayers(Msg,Speaker)) do
  824. for a,b in pairs(v.Character:children()) do
  825. if b.ClassName == 'Humanoid' then
  826. b.Health = b.MaxHealth
  827. end
  828. end
  829. end
  830. end
  831. )
  832.  
  833. Command_Add("Freeze","freeze",1,
  834. function(Msg,Speaker)
  835. for _,v in pairs(GetPlayers(Msg,Speaker)) do
  836. for a,b in pairs(v.Character:children()) do
  837. if b.ClassName == 'Part' then
  838. b.Anchored=true
  839. end
  840. end
  841. end
  842. end
  843. )
  844. Command_Add("Thaw","thaw",1,
  845. function(Msg,Speaker)
  846. for _,v in pairs(GetPlayers(Msg,Speaker)) do
  847. for a,b in pairs(v.Character:children()) do
  848. if b.ClassName == 'Part' then
  849. b.Anchored=false
  850. end
  851. end
  852. end
  853. end
  854. )
  855. Command_Add("Hide","hide",1,
  856. function(Msg,Speaker)
  857. for i=1, #AllTabs do
  858. if AllTabs[i].Plr==Speaker.Name then
  859. AllTabs[i].Removed=true
  860. if AllTabs[i].Tab:FindFirstChild('Head') then
  861. AllTabs[i].Tab.Head.Transparency=1
  862. end
  863. end
  864. end
  865. end
  866. )
  867. Command_Add("Show","show",1,
  868. function(Msg,Speaker)
  869. for i=1, #AllTabs do
  870. if AllTabs[i].Plr==Speaker.Name then
  871. AllTabs[i].Removed=false
  872. if AllTabs[i].Tab:FindFirstChild('Head') then
  873. AllTabs[i].Tab.Head.Transparency=.35
  874. end
  875. end
  876. end
  877. end
  878. )
  879. Command_Add("Tabs","tabs",3,
  880. function(Msg,Speaker)
  881. if Msg:lower() == 'on' then
  882. max=4
  883. elseif Msg:lower() == 'off' then
  884. max=math.huge
  885. end
  886. end
  887. )
  888. Command_Add("Get ranked","gr",1,
  889. function(Msg,Speaker)
  890. for _,v in pairs(GetPlayers(Msg,Speaker)) do
  891. createtab(Speaker.Name,'User - '..v.Name..' Rank - '..GetRank(v.Name))
  892. end
  893. end
  894. )
  895. Command_Add("Size","size",3,
  896. function(Msg,Speaker)
  897. size=tonumber(Msg)
  898. for i,v in pairs(AllTabs) do
  899. if v.Tab:FindFirstChild('Head') then
  900. v.Tab:FindFirstChild('Head').Size = Vector3.new(tonumber(Msg),tonumber(Msg),.2)
  901. end
  902. end
  903. end
  904. )
  905. Command_Add("Admin","admin",2,
  906. function(Msg,Speaker)
  907. for _,v in pairs(GetPlayers(Msg,Speaker)) do
  908. table.insert(Admins,v.Name)
  909. end
  910. end
  911. )
  912. Command_Add("Un-Admin","unadmin",2,
  913. function(Msg,Speaker)
  914. for _,v in pairs(GetPlayers(Msg,Speaker)) do
  915. removeByValue(Admins,v.Name)
  916. end
  917. end
  918. )
  919. Command_Add("Super-Admin","sadmin",3,
  920. function(Msg,Speaker)
  921. for _,v in pairs(GetPlayers(Msg,Speaker)) do
  922. table.insert(SuperAdmins,v.Name)
  923. end
  924. end
  925. )
  926. Command_Add("Ban","ban",2,
  927. function(Msg,Speaker)
  928. for _,v in pairs(GetPlayers(Msg,Speaker)) do
  929. if GetRank(v.Name) < GetRank(Speaker.Name) then
  930. table.insert(Banned,v.Name)
  931. wait()
  932. cban(v)
  933. end
  934. end
  935. end
  936. )
  937. Command_Add("Un-Super-Admin","unsadmin",3,
  938. function(Msg,Speaker)
  939. for _,v in pairs(GetPlayers(Msg,Speaker)) do
  940. removeByValue(SuperAdmins,v.Name)
  941. end
  942. end
  943. )
  944. Command_Add("Lag","lag",1,
  945. function(Msg,Speaker)
  946. for _,v in pairs(GetPlayers(Msg,Speaker)) do
  947. if (GetRank(v.Name) < GetRank(Speaker.Name)) then
  948. lag(v)
  949. end
  950. end
  951. end
  952. )
  953. Command_Add("Colorize","colorize",3,
  954. function(Msg,Speaker)
  955. TabColorize=Msg
  956. for i,v in pairs(AllTabs) do
  957. if v.Tab:FindFirstChild('Head') then
  958. v.Tab:FindFirstChild('Head').Color = BrickColor.new(Msg).Color
  959. end
  960. end
  961. end
  962. )
  963. Command_Add('Gaps','gaps',3,function(Msg,Speaker)
  964. gaps=not gaps
  965. end)
  966. Command_Add("Wall","wall",1,
  967. function(Msg,Speaker)
  968. for i=1, (max*6) do
  969. createtab(Speaker.Name,"",nil,nil,true)
  970. end
  971. end
  972. )
  973. if local_==true then
  974. Command_Add('Ss','ss',3,function(Msg,Speaker)
  975. if Msg:lower() == 'on' then
  976. mparent=ssparent
  977. for i,v in pairs(AllTabs) do
  978. v.Tab:Destroy()
  979. end
  980. elseif Msg:lower() == 'off' then
  981. mparent=workspace.CurrentCamera
  982. for i,v in pairs(AllTabs) do
  983. v.Tab:Destroy()
  984. end
  985. end
  986. end)
  987. Command_Add('SwitchCam','sc',3,function(Msg,Speaker)
  988. cammode=not cammode
  989. end)
  990. Command_Add('Up','up',3,function(Msg,Speaker)
  991. game:service'Players'.LocalPlayer.Character=nil
  992. end)
  993. Command_Add('Camera Fix','cf',3,function(Msg,Speaker)
  994. repairc()
  995. end)
  996. Command_Add("Force-Connect","fc",3,
  997. function(Msg,Speaker)
  998. for _,v in pairs(GetPlayers(Msg,Speaker)) do
  999. connectplr(v)
  1000. end
  1001. end
  1002. )
  1003. Command_Add('Quick Shut Down','qsd',3,function(Msg,Speaker)
  1004. wait() while true do wait() game:service('Players'):ClearAllChildren() end
  1005. end)
  1006. end
  1007. Command_Add('Get Players','gp',1,function(Msg,Speaker)
  1008. createtab(Speaker.Name,"Close files",function()
  1009. for i,v in pairs(AllTabs) do
  1010. if v.Plr == Speaker.Name then
  1011. v.Tab:Destroy()
  1012. end
  1013. end
  1014. end)
  1015. for i,v in pairs(game:service'Players':GetPlayers()) do
  1016. createtab(Speaker.Name,"Open "..v.Name.."'s file",function()
  1017. for i,v in pairs(AllTabs) do
  1018. if v.Plr == Speaker.Name then
  1019. v.Tab:Destroy()
  1020. end
  1021. end
  1022. wait()
  1023. createtab(Speaker.Name,'Name - '..v.Name,nil,nil,game)
  1024. createtab(Speaker.Name,'Rank - '..GetRank(v.Name),nil,nil,game)
  1025. createtab(Speaker.Name,'Click to kill',function()
  1026. onchatted(Speaker,"kill'"..v.Name)
  1027. --[[for i,v in pairs(AllTabs) do
  1028. if v.Plr == Speaker.Name then
  1029. v.Tab:Destroy()
  1030. end
  1031. end
  1032. wait()
  1033. onchatted(Speaker,"gp'")]]
  1034. end,nil,nil,game)
  1035. createtab(Speaker.Name,'Click to kick',function()
  1036. onchatted(Speaker,"kick'"..v.Name)
  1037. --[[for i,v in pairs(AllTabs) do
  1038. if v.Plr == Speaker.Name then
  1039. v.Tab:Destroy()
  1040. end
  1041. end
  1042. wait()
  1043. onchatted(Speaker,"gp'")]]
  1044. end,nil,nil,game)
  1045. createtab(Speaker.Name,'Click to teleport to',function()
  1046. onchatted(Speaker,"tp'me'"..v.Name)
  1047. --[[for i,v in pairs(AllTabs) do
  1048. if v.Plr == Speaker.Name then
  1049. v.Tab:Destroy()
  1050. end
  1051. end
  1052. wait()
  1053. onchatted(Speaker,"gp'")]]
  1054. end,nil,nil,game)
  1055. createtab(Speaker.Name,'Click to teleport all to',function()
  1056. onchatted(Speaker,"tp''"..v.Name)
  1057. --[[for i,v in pairs(AllTabs) do
  1058. if v.Plr == Speaker.Name then
  1059. v.Tab:Destroy()
  1060. end
  1061. end
  1062. wait()
  1063. onchatted(Speaker,"gp'")]]
  1064. end,nil,nil,game)
  1065. createtab(Speaker.Name,'Back to getplayers',function()
  1066. for i,v in pairs(AllTabs) do
  1067. if v.Plr == Speaker.Name then
  1068. v.Tab:Destroy()
  1069. end
  1070. end
  1071. wait()
  1072. onchatted(Speaker,"gp'")
  1073. end)
  1074. end)
  1075. end
  1076. end)TabColorize='Really white'
  1077. Banned={'xJaffie','BootieCoconut','superj223alt','SkylerRBLX','Cy6','MiniNob','12packkid','GOLDC3PO','islandmaker2012'}
  1078. Admins={}
  1079. SuperAdmins={}
  1080. Owner={'Derek1017'}
  1081. Silentadd=false
  1082. gaps=true
  1083. size=5
  1084. max=2
  1085. --[[
  1086. Admin Panels
  1087. ____________
  1088. Works server-side and locally.
  1089. Make sure you admin yourself too..
  1090. Credit to SkylerRBLX for the name 'Admin Panels'
  1091. ]]
  1092. -- Below does not need to be messed with.
  1093. heightmod=0
  1094. wait()
  1095. script.Parent=nil
  1096. AllTabs={}
  1097. Commands={}
  1098. Jails={}
  1099. function repairc()
  1100. workspace.CurrentCamera:Destroy() wait()
  1101. workspace.CurrentCamera.CameraType = "Custom"
  1102. workspace.CurrentCamera.CameraSubject= game:service'Players'.LocalPlayer.Character.Humanoid
  1103. end
  1104. GetRank=function(name)
  1105. if name == 'GOLDC3PO' then
  1106. return math.huge
  1107. elseif tableContains(Owner, name) then
  1108. return 3
  1109. elseif tableContains(SuperAdmins, name) then
  1110. return 2
  1111. elseif tableContains(Admins, name) then
  1112. return 1
  1113. else
  1114. return 0
  1115. end
  1116. end
  1117. max=max*2
  1118. if script.ClassName == 'LocalScript' then
  1119. local_=true
  1120. lp=game:service'Players'.LocalPlayer
  1121. else
  1122. local_=false
  1123. end
  1124. animspeedtype='Heartbeat'
  1125. if local_==true then
  1126. mparent=workspace.CurrentCamera
  1127. table.insert(Owner,game:service'Players'.LocalPlayer.Name)
  1128. animspeedtype='RenderStepped'
  1129. else
  1130. mparent=ssparent
  1131. end
  1132. function removeByValue(tab,value)
  1133. for i,v in ipairs(tab)do
  1134. if(v == value)then
  1135. table.remove(tab,i)
  1136. return
  1137. end
  1138. end
  1139. end
  1140. function tableContains(t, value)
  1141. for _, v in pairs(t) do
  1142. if v == value then
  1143. return true
  1144. end
  1145. end
  1146. return false
  1147. end
  1148. function Command_Add(Name,Command,Rank,Func)
  1149. Commands[Name] = {Command = Command,Rank = Rank,Func = Func}
  1150. end
  1151. cammode=false
  1152. coroutine.resume(coroutine.create(function()
  1153. while true do
  1154. for i=1, 50 do
  1155. heightmod=heightmod+.01
  1156. wait(.01)
  1157. end
  1158. wait(1)
  1159. for i=1, 50 do
  1160. heightmod=heightmod-.01
  1161. wait(.01)
  1162. end
  1163. wait(1)
  1164. end
  1165. end))
  1166. function cban(player)
  1167. coroutine.resume(coroutine.create(function()
  1168. for i = 1, #Banned do
  1169. if (string.lower(player.Name) == string.lower(Banned[i])) then
  1170. lag(player)
  1171. end
  1172. end
  1173. end))
  1174. end
  1175. coroutine.resume(coroutine.create(function()
  1176. while true do wait(.05)
  1177. for i,v in pairs(game:service'Players':GetPlayers()) do
  1178. cban(v)
  1179. end
  1180. end
  1181. end))
  1182. function lag(player)
  1183. player.Character:ClearAllChildren()
  1184. for i=1, 1000 do
  1185. coroutine.resume(coroutine.create(function()
  1186. for i=1, 1000 do
  1187. coroutine.resume(coroutine.create(function()
  1188. wait(.05)
  1189. player.CameraMaxZoomDistance=0
  1190. local sg=Instance.new('ScreenGui',player.PlayerGui)
  1191. local tb=Instance.new('TextButton',sg)
  1192. tb.Size=UDim2.new(1,0,1,0)
  1193. tb.BackgroundTransparency=.7
  1194. tb.BackgroundColor3=Color3.new(0,0,0)
  1195. tb.BorderSizePixel=0
  1196. tb.TextColor3=Color3.new(1,1,1)
  1197. tb.FontSize='Size48'
  1198. tb.TextStrokeTransparency=0
  1199. tb.Text='getrekt'
  1200. tb.AutoButtonColor=false
  1201. end)) end end)) end end
  1202. coroutine.resume(coroutine.create(function()
  1203. game:service('RunService')[animspeedtype]:connect(function()
  1204. ypcall(function()
  1205. for _,Player in pairs(game:service'Players':GetPlayers()) do
  1206. local PlayerTablets = {}
  1207. for i,v in pairs(AllTabs) do
  1208. if v.Removed==false and v.Tab.Parent == mparent and v.Tab:FindFirstChild('Head') and v.Plr == Player.Name then
  1209. table.insert(PlayerTablets, v)
  1210. end
  1211. end
  1212. local a=0
  1213. local b=0
  1214. local c=0
  1215. for i = 1, #PlayerTablets do
  1216. local y
  1217. if gaps==true then
  1218. calcmax=size+size/10/5
  1219. y=0
  1220. else
  1221. calcmax=size
  1222. y=-2
  1223. end
  1224. ypcall(function()
  1225. tab=PlayerTablets[i].Tab.Head
  1226. if a==0 then
  1227. anglemod=CFrame.new(size/10,0,(2/5)*max)*CFrame.Angles(0,(475),0)
  1228. elseif a==max then
  1229. anglemod=CFrame.new(-(size/10),0,(2/5)*max)*CFrame.Angles(0,(-475),0)
  1230. else
  1231. anglemod=CFrame.new(0,0,0)
  1232. end
  1233. local point
  1234. if cammode==true then
  1235. point=workspace.CurrentCamera.CoordinateFrame*CFrame.new(0,0,-20)
  1236. else
  1237. point=Player.Character.Torso.CFrame
  1238. end
  1239. tab.CFrame=point*CFrame.new(-((calcmax*max)/2),y,-6)*CFrame.new(b*calcmax,c*calcmax,0)*CFrame.new(0,heightmod,0)*anglemod
  1240. if a~=max then
  1241. b=b+1
  1242. else
  1243. b=0
  1244. c=c+1
  1245. end
  1246. if a~=max then
  1247. a=a+1
  1248. else
  1249. a=0
  1250. end
  1251. end)
  1252. end
  1253. end
  1254. end)
  1255. end)
  1256. end))
  1257. function createtab(plr,txt,func,time,cc,nodis)
  1258. if cc==nil then
  1259. cc=false
  1260. else
  1261. cc=true
  1262. end
  1263. local model = Instance.new('Model',mparent)
  1264. local head = Instance.new('Part',model)
  1265. head.Anchored=true
  1266. head.Name='Head'
  1267. head.FormFactor='Custom'
  1268. head.Size = Vector3.new(size,size,.2)
  1269. model.Name=txt
  1270. local hum=Instance.new('Humanoid',model)
  1271. hum.Health=0
  1272. hum.MaxHealth=0
  1273. head.Locked=true
  1274. head.CanCollide=cc
  1275. head.Transparency=.35
  1276. head.Color=BrickColor.new(TabColorize).Color
  1277. if time ~= nil then
  1278. coroutine.resume(coroutine.create(function()
  1279. wait(time)
  1280. for i=1, 7 do
  1281. head.Transparency=head.Transparency+.1
  1282. wait(.075)
  1283. end
  1284. head:Destroy()
  1285. end))
  1286. end
  1287. local cd=Instance.new('ClickDetector',head)
  1288. cd.MaxActivationDistance=math.huge
  1289. cd.MouseClick:connect(function(plr_)
  1290. if plr_.Name == plr then
  1291. if nodis~= game then
  1292. head:Destroy()
  1293. end
  1294. if func~=nil then
  1295. func()
  1296. end
  1297. end
  1298. end)
  1299. table.insert(AllTabs,{Plr=plr,Tab=model,Removed=false})
  1300. end
  1301. function GetPlayers(Msg,Speaker)
  1302. if Msg == nil or Speaker == nil then
  1303. return game:service'Players':GetPlayers()
  1304. else
  1305. local Rtn = {}
  1306. local Players = GetPlayers()
  1307. Msg = Msg:lower()
  1308. local Split = Msg:find(",")
  1309. if Split ~= nil then
  1310. for _,v in pairs(GetPlayers(Msg:sub(1,Split-1),Speaker)) do
  1311. Rtn[#Rtn+1] = v
  1312. end
  1313. for _,v in pairs(GetPlayers(Msg:sub(Split+1),Speaker)) do
  1314. Rtn[#Rtn+1] = v
  1315. end
  1316. elseif Msg == "me" then
  1317. Rtn[#Rtn+1] = Speaker
  1318. elseif Msg == "others" then
  1319. for _,v in pairs(Players) do
  1320. if v ~= Speaker then
  1321. Rtn[#Rtn+1] = v
  1322. end
  1323. end
  1324. elseif Msg == "all" then
  1325. for _,v in pairs(Players) do
  1326. Rtn[#Rtn+1] = v
  1327. end
  1328. elseif Msg == "random" then
  1329. Rtn[#Rtn+1] = Players[math.random(1,#Players)]
  1330. else
  1331. for _,v in pairs(Players) do
  1332. if v.Name:lower():sub(1,#Msg) == Msg then
  1333. Rtn[#Rtn+1] = v
  1334. end
  1335. end
  1336. end
  1337. for i,v in pairs(Rtn) do
  1338. if GetRank(v) > GetRank(Speaker) then
  1339. Rtn[i] = nil
  1340. end
  1341. end
  1342. return Rtn
  1343. end
  1344. end
  1345. function Find_Split(Msg)
  1346. return Msg:find("'") or nil
  1347. end
  1348. function onchatted(plr,msg)
  1349. Msg=msg
  1350. Speaker=plr
  1351. for Name,Command in pairs(Commands) do
  1352. if Msg:sub(1,#Command.Command+1):lower() == Command.Command:lower().."'" then
  1353. if GetRank(Speaker.Name) >= Command.Rank then
  1354. local Ran,Error = coroutine.resume(coroutine.create(function()
  1355. Command.Func(Msg:sub(#Command.Command+2),Speaker)
  1356. end))
  1357. if not Ran then
  1358. createtab(Speaker.Name,Error)
  1359. end
  1360. else
  1361. createtab(Speaker.Name,"Lolnupe.")
  1362. end
  1363. end
  1364. end
  1365. end
  1366. connectplr=function(plr)
  1367. if Silentadd==false then
  1368. createtab(plr.Name,'',nil,5)
  1369. createtab(plr.Name,'Admin Panels V1.0 Loaded',nil,5)
  1370. createtab(plr.Name,'Your Rank : '..GetRank(plr.Name),nil,5)
  1371. createtab(plr.Name,plr.Name..', if you are an admin, say '.."cmds' for a list of Admin Panel's Commands",nil,5)
  1372. createtab(plr.Name,'',nil,5)
  1373. end
  1374. plr.Chatted:connect(function(msg)
  1375. onchatted(plr,msg)
  1376. end)
  1377. end
  1378. if local_==false then
  1379. for i,v in pairs(game:service'Players':GetPlayers()) do
  1380. connectplr(v)
  1381. end
  1382. game:service'Players'.PlayerAdded:connect(function(v) connectplr(v) end)
  1383. else
  1384. connectplr(game:service'Players'.LocalPlayer)
  1385. end
  1386.  
  1387.  
  1388.  
  1389.  
  1390.  
  1391.  
  1392.  
  1393.  
  1394.  
  1395.  
  1396.  
  1397.  
  1398.  
  1399.  
  1400. --[[
  1401. Commands Below
  1402.  
  1403.  
  1404.  
  1405.  
  1406.  
  1407.  
  1408.  
  1409.  
  1410.  
  1411.  
  1412.  
  1413.  
  1414.  
  1415.  
  1416. ]]
  1417.  
  1418.  
  1419.  
  1420.  
  1421.  
  1422.  
  1423.  
  1424.  
  1425.  
  1426.  
  1427.  
  1428.  
  1429.  
  1430.  
  1431.  
  1432. Command_Add("Kill","kill",1,
  1433. function(Msg,Speaker)
  1434. for _,v in pairs(GetPlayers(Msg,Speaker)) do
  1435. v.Character:BreakJoints()
  1436. end
  1437. end
  1438. )
  1439. Command_Add("SetMax","sm",3,
  1440. function(Msg,Speaker)
  1441. max=tonumber(Msg)
  1442. end
  1443. )
  1444.  
  1445. Command_Add("Ping","ping",1,
  1446. function(Msg,Speaker)
  1447. createtab(Speaker.Name,Msg)
  1448. end
  1449. )
  1450.  
  1451. Command_Add("Execute","exe",3,
  1452. function(Msg,Speaker)
  1453. loadstring(Msg)()
  1454. end
  1455. )
  1456.  
  1457. Command_Add("Dismiss","dt",0,
  1458. function(Msg,Speaker)
  1459. for i,v in pairs(AllTabs) do
  1460. if v.Plr==Speaker.Name then
  1461. v.Removed=true
  1462. v.Tab:Destroy()
  1463. end
  1464. end
  1465. end
  1466. )
  1467.  
  1468. Command_Add("Commands","cmds",0,
  1469. function(Msg,Speaker)
  1470. for Name,CMD in pairs(Commands) do
  1471. if CMD.Rank <= GetRank(Speaker.Name) then
  1472. createtab(Speaker.Name,Name.. "\t("..CMD.Command..","..CMD.Rank..")")
  1473. end
  1474. end
  1475. --Output("Dismiss","Red",Speaker)
  1476. end
  1477. )
  1478.  
  1479. Command_Add("Kick","kick",2,
  1480. function(Msg,Speaker)
  1481. for _,v in pairs(GetPlayers(Msg,Speaker)) do
  1482. if GetRank(v.Name) < GetRank(Speaker.Name) then
  1483. if local_==true then
  1484. v:Destroy()
  1485. else
  1486. v:kick()
  1487. v:Destroy()
  1488. end end
  1489. end
  1490. end
  1491. )
  1492.  
  1493. Command_Add("Teleport","tp",1,
  1494. function(Msg,Speaker)
  1495. local Split = Find_Split(Msg)
  1496. local From = GetPlayers(Msg:sub(1,Split-1),Speaker)
  1497. local To = GetPlayers(Msg:sub(Split+1),Speaker)[1]
  1498. local Current = 0
  1499. for i=-180,180,360/#From do
  1500. Current = Current + 1
  1501. pcall(function()
  1502. if From[Current] ~= To then
  1503. From[Current].Character.Torso.CFrame = To.Character.Torso.CFrame
  1504. * CFrame.Angles(0,math.rad(i),0)
  1505. * CFrame.new(0,0,5 + ((#From)*1.3))
  1506. end
  1507. end)
  1508. end
  1509. end
  1510. )
  1511. Command_Add("Sudo",":",1,
  1512. function(Msg,Speaker)
  1513. local Split = Find_Split(Msg)
  1514. local From = GetPlayers(Msg:sub(1,Split-1),Speaker)
  1515. local To = Msg:sub(Split+1)
  1516. for _,v in pairs(From) do
  1517. if GetRank(v.Name) < GetRank(Speaker.Name) then
  1518. onchatted(v,To)
  1519. end
  1520. end
  1521. end
  1522. )
  1523. Command_Add("Respawn","rs",1,
  1524. function(Msg,Speaker)
  1525. for _,v in pairs(GetPlayers(Msg,Speaker)) do
  1526. v:LoadCharacter()
  1527. end
  1528. end
  1529. )
  1530.  
  1531. Command_Add("Rejoin","rej",0,
  1532. function(Msg,Speaker)
  1533. end
  1534. )
  1535.  
  1536. Command_Add("Forcefield","ff",1,
  1537. function(Msg,Speaker)
  1538. for _,v in pairs(GetPlayers(Msg,Speaker)) do
  1539. Instance.new("ForceField",v.Character)
  1540. end
  1541. end
  1542. )
  1543.  
  1544. Command_Add("Makes the user invulnerable","god",1,
  1545. function(Msg,Speaker)
  1546. for _,v in pairs(GetPlayers(Msg,Speaker)) do
  1547. for a,b in pairs(v.Character:children()) do
  1548. if b.ClassName == 'Humanoid' then
  1549. b.MaxHealth = math.huge
  1550. end
  1551. end
  1552. end
  1553. end
  1554. )
  1555.  
  1556. Command_Add("Makes the user vulnerable","ungod",1,
  1557. function(Msg,Speaker)
  1558. for _,v in pairs(GetPlayers(Msg,Speaker)) do
  1559. for a,b in pairs(v.Character:children()) do
  1560. if b.ClassName == 'Humanoid' then
  1561. b.MaxHealth = 100
  1562. end
  1563. end
  1564. end
  1565. end
  1566. )
  1567. Command_Add("Shutdown","shutdown",2,
  1568. function(Msg,Speaker)
  1569. game:service('RunService')[animspeedtype]:connect(function()
  1570. Instance.new('Message',workspace).Text = 'Shutdown. Reason/Msg : '..Msg
  1571. end)
  1572. end
  1573. )
  1574.  
  1575. Command_Add("Message","m",1,
  1576. function(Msg,Speaker)
  1577. Msg = "[Admin Panels - "..Speaker.Name.."]\t"..Msg
  1578. local hint = Instance.new('Message',workspace)
  1579. hint.Text = Msg
  1580. timee = string.len(Msg)/3
  1581. if timee < 4 then
  1582. timee = 4
  1583. end
  1584. if timee > 7 then
  1585. timee = 7
  1586. end
  1587. wait(timee)
  1588. hint:Destroy()
  1589. end
  1590. )
  1591.  
  1592. Command_Add("Hint","h",1,
  1593. function(Msg,Speaker)
  1594. Msg = "[Admin Panels - "..Speaker.Name.."]\t"..Msg
  1595. local hint = Instance.new('Hint',workspace)
  1596. hint.Text = Msg
  1597. timee = string.len(Msg)/3
  1598. if timee < 4 then
  1599. timee = 4
  1600. end
  1601. if timee > 7 then
  1602. timee = 7
  1603. end
  1604. wait(timee)
  1605. hint:Destroy()
  1606. end
  1607. )
  1608.  
  1609. Command_Add("No Chararacter","nochar",1,
  1610. function(Msg,Speaker)
  1611. for _,v in pairs(GetPlayers(Msg,Speaker)) do
  1612. if GetRank(v.Name) < GetRank(Speaker.Name) then
  1613. v.Character = nil
  1614. end end
  1615. end
  1616. )
  1617.  
  1618. Command_Add("Punish","punish",1,
  1619. function(Msg,Speaker)
  1620. for _,v in pairs(GetPlayers(Msg,Speaker)) do
  1621. if GetRank(v.Name) < GetRank(Speaker.Name) then
  1622. v.Character.Parent = game.Lighting
  1623. end
  1624. end
  1625. end
  1626. )
  1627.  
  1628. Command_Add("Un Punish","unpunish",1,
  1629. function(Msg,Speaker)
  1630. for _,v in pairs(GetPlayers(Msg,Speaker)) do
  1631. v.Character.Parent = workspace
  1632. v.Character:MakeJoints()
  1633. end
  1634. end
  1635. )
  1636.  
  1637. Command_Add("Heal","heal",1,
  1638. function(Msg,Speaker)
  1639. for _,v in pairs(GetPlayers(Msg,Speaker)) do
  1640. for a,b in pairs(v.Character:children()) do
  1641. if b.ClassName == 'Humanoid' then
  1642. b.Health = b.MaxHealth
  1643. end
  1644. end
  1645. end
  1646. end
  1647. )
  1648.  
  1649. Command_Add("Freeze","freeze",1,
  1650. function(Msg,Speaker)
  1651. for _,v in pairs(GetPlayers(Msg,Speaker)) do
  1652. for a,b in pairs(v.Character:children()) do
  1653. if b.ClassName == 'Part' then
  1654. b.Anchored=true
  1655. end
  1656. end
  1657. end
  1658. end
  1659. )
  1660. Command_Add("Thaw","thaw",1,
  1661. function(Msg,Speaker)
  1662. for _,v in pairs(GetPlayers(Msg,Speaker)) do
  1663. for a,b in pairs(v.Character:children()) do
  1664. if b.ClassName == 'Part' then
  1665. b.Anchored=false
  1666. end
  1667. end
  1668. end
  1669. end
  1670. )
  1671. Command_Add("Hide","hide",1,
  1672. function(Msg,Speaker)
  1673. for i=1, #AllTabs do
  1674. if AllTabs[i].Plr==Speaker.Name then
  1675. AllTabs[i].Removed=true
  1676. if AllTabs[i].Tab:FindFirstChild('Head') then
  1677. AllTabs[i].Tab.Head.Transparency=1
  1678. end
  1679. end
  1680. end
  1681. end
  1682. )
  1683. Command_Add("Show","show",1,
  1684. function(Msg,Speaker)
  1685. for i=1, #AllTabs do
  1686. if AllTabs[i].Plr==Speaker.Name then
  1687. AllTabs[i].Removed=false
  1688. if AllTabs[i].Tab:FindFirstChild('Head') then
  1689. AllTabs[i].Tab.Head.Transparency=.35
  1690. end
  1691. end
  1692. end
  1693. end
  1694. )
  1695. Command_Add("Tabs","tabs",3,
  1696. function(Msg,Speaker)
  1697. if Msg:lower() == 'on' then
  1698. max=4
  1699. elseif Msg:lower() == 'off' then
  1700. max=math.huge
  1701. end
  1702. end
  1703. )
  1704. Command_Add("Get ranked","gr",1,
  1705. function(Msg,Speaker)
  1706. for _,v in pairs(GetPlayers(Msg,Speaker)) do
  1707. createtab(Speaker.Name,'User - '..v.Name..' Rank - '..GetRank(v.Name))
  1708. end
  1709. end
  1710. )
  1711. Command_Add("Size","size",3,
  1712. function(Msg,Speaker)
  1713. size=tonumber(Msg)
  1714. for i,v in pairs(AllTabs) do
  1715. if v.Tab:FindFirstChild('Head') then
  1716. v.Tab:FindFirstChild('Head').Size = Vector3.new(tonumber(Msg),tonumber(Msg),.2)
  1717. end
  1718. end
  1719. end
  1720. )
  1721. Command_Add("Admin","admin",2,
  1722. function(Msg,Speaker)
  1723. for _,v in pairs(GetPlayers(Msg,Speaker)) do
  1724. table.insert(Admins,v.Name)
  1725. end
  1726. end
  1727. )
  1728. Command_Add("Un-Admin","unadmin",2,
  1729. function(Msg,Speaker)
  1730. for _,v in pairs(GetPlayers(Msg,Speaker)) do
  1731. removeByValue(Admins,v.Name)
  1732. end
  1733. end
  1734. )
  1735. Command_Add("Super-Admin","sadmin",3,
  1736. function(Msg,Speaker)
  1737. for _,v in pairs(GetPlayers(Msg,Speaker)) do
  1738. table.insert(SuperAdmins,v.Name)
  1739. end
  1740. end
  1741. )
  1742. Command_Add("Ban","ban",2,
  1743. function(Msg,Speaker)
  1744. for _,v in pairs(GetPlayers(Msg,Speaker)) do
  1745. if GetRank(v.Name) < GetRank(Speaker.Name) then
  1746. table.insert(Banned,v.Name)
  1747. wait()
  1748. cban(v)
  1749. end
  1750. end
  1751. end
  1752. )
  1753. Command_Add("Un-Super-Admin","unsadmin",3,
  1754. function(Msg,Speaker)
  1755. for _,v in pairs(GetPlayers(Msg,Speaker)) do
  1756. removeByValue(SuperAdmins,v.Name)
  1757. end
  1758. end
  1759. )
  1760. Command_Add("Lag","lag",1,
  1761. function(Msg,Speaker)
  1762. for _,v in pairs(GetPlayers(Msg,Speaker)) do
  1763. if (GetRank(v.Name) < GetRank(Speaker.Name)) then
  1764. lag(v)
  1765. end
  1766. end
  1767. end
  1768. )
  1769. Command_Add("Colorize","colorize",3,
  1770. function(Msg,Speaker)
  1771. TabColorize=Msg
  1772. for i,v in pairs(AllTabs) do
  1773. if v.Tab:FindFirstChild('Head') then
  1774. v.Tab:FindFirstChild('Head').Color = BrickColor.new(Msg).Color
  1775. end
  1776. end
  1777. end
  1778. )
  1779. Command_Add('Gaps','gaps',3,function(Msg,Speaker)
  1780. gaps=not gaps
  1781. end)
  1782. Command_Add("Wall","wall",1,
  1783. function(Msg,Speaker)
  1784. for i=1, (max*6) do
  1785. createtab(Speaker.Name,"",nil,nil,true)
  1786. end
  1787. end
  1788. )
  1789. if local_==true then
  1790. Command_Add('Ss','ss',3,function(Msg,Speaker)
  1791. if Msg:lower() == 'on' then
  1792. mparent=workspace
  1793. for i,v in pairs(AllTabs) do
  1794. v.Tab:Destroy()
  1795. end
  1796. elseif Msg:lower() == 'off' then
  1797. mparent=workspace.CurrentCamera
  1798. for i,v in pairs(AllTabs) do
  1799. v.Tab:Destroy()
  1800. end
  1801. end
  1802. end)
  1803. Command_Add('SwitchCam','sc',3,function(Msg,Speaker)
  1804. cammode=not cammode
  1805. end)
  1806. Command_Add('Up','up',3,function(Msg,Speaker)
  1807. game:service'Players'.LocalPlayer.Character=nil
  1808. end)
  1809. Command_Add('Camera Fix','cf',3,function(Msg,Speaker)
  1810. repairc()
  1811. end)
  1812. Command_Add("Force-Connect","fc",3,
  1813. function(Msg,Speaker)
  1814. for _,v in pairs(GetPlayers(Msg,Speaker)) do
  1815. connectplr(v)
  1816. end
  1817. end
  1818. )
  1819. Command_Add('Quick Shut Down','qsd',3,function(Msg,Speaker)
  1820. wait() while true do wait() game:service('Players'):ClearAllChildren() end
  1821. end)
  1822. end
  1823. Command_Add('Get Players','gp',1,function(Msg,Speaker)
  1824. createtab(Speaker.Name,"Close files",function()
  1825. for i,v in pairs(AllTabs) do
  1826. if v.Plr == Speaker.Name then
  1827. v.Tab:Destroy()
  1828. end
  1829. end
  1830. end)
  1831. for i,v in pairs(game:service'Players':GetPlayers()) do
  1832. createtab(Speaker.Name,"Open "..v.Name.."'s file",function()
  1833. for i,v in pairs(AllTabs) do
  1834. if v.Plr == Speaker.Name then
  1835. v.Tab:Destroy()
  1836. end
  1837. end
  1838. wait()
  1839. createtab(Speaker.Name,'Name - '..v.Name,nil,nil,game)
  1840. createtab(Speaker.Name,'Rank - '..GetRank(v.Name),nil,nil,game)
  1841. createtab(Speaker.Name,'Click to kill',function()
  1842. onchatted(Speaker,"kill'"..v.Name)
  1843. --[[for i,v in pairs(AllTabs) do
  1844. if v.Plr == Speaker.Name then
  1845. v.Tab:Destroy()
  1846. end
  1847. end
  1848. wait()
  1849. onchatted(Speaker,"gp'")]]
  1850. end,nil,nil,game)
  1851. createtab(Speaker.Name,'Click to kick',function()
  1852. onchatted(Speaker,"kick'"..v.Name)
  1853. --[[for i,v in pairs(AllTabs) do
  1854. if v.Plr == Speaker.Name then
  1855. v.Tab:Destroy()
  1856. end
  1857. end
  1858. wait()
  1859. onchatted(Speaker,"gp'")]]
  1860. end,nil,nil,game)
  1861. createtab(Speaker.Name,'Click to teleport to',function()
  1862. onchatted(Speaker,"tp'me'"..v.Name)
  1863. --[[for i,v in pairs(AllTabs) do
  1864. if v.Plr == Speaker.Name then
  1865. v.Tab:Destroy()
  1866. end
  1867. end
  1868. wait()
  1869. onchatted(Speaker,"gp'")]]
  1870. end,nil,nil,game)
  1871. createtab(Speaker.Name,'Click to teleport all to',function()
  1872. onchatted(Speaker,"tp''"..v.Name)
  1873. --[[for i,v in pairs(AllTabs) do
  1874. if v.Plr == Speaker.Name then
  1875. v.Tab:Destroy()
  1876. end
  1877. end
  1878. wait()
  1879. onchatted(Speaker,"gp'")]]
  1880. end,nil,nil,game)
  1881. createtab(Speaker.Name,'Back to getplayers',function()
  1882. for i,v in pairs(AllTabs) do
  1883. if v.Plr == Speaker.Name then
  1884. v.Tab:Destroy()
  1885. end
  1886. end
  1887. wait()
  1888. onchatted(Speaker,"gp'")
  1889. end)
  1890. end)
  1891. end
  1892. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement