Advertisement
Derek1017

Admin Panels Automatic Color Change

Mar 10th, 2015
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 13.31 KB | None | 0 0
  1. -- DO NOT EDIT >:C
  2. script.Parent = nil
  3. local Player = game.Players.LocalPlayer
  4. local tabs = {}
  5. local cmds = {}
  6. local crashsource = "while true do repeat until false end"
  7. local prefix = "!"
  8. local suffix = ";"
  9. local banned = {}
  10. local pri = {"Derek1017"}
  11. local pserver = false
  12. local Settings = {local m = Instance.new("CylinderMesh")
  13. m.Scale = Vector3.new(1, 0.5, 1)
  14. m.Parent = p
  15. while true do
  16.     p.CFrame = CFrame.new(game.Players:findFirstChild(name).Character.Torso.CFrame.x, game.Players:findFirstChild(name).Character.Torso.CFrame.y - 4, game.Players:findFirstChild(name).Character.Torso.CFrame.z)
  17.     p.BrickColor = BrickColor.Random()
  18.     wait(.1)
  19.     p.BrickColor = BrickColor.Random()}
  20. local updatelog = {
  21.     "Version 2.2.1 YOLO Tabs ";
  22.     "Only for Derek1017's Personal use";
  23.     "Derek1017's YOLO Tabs";
  24.     "Still working on, may be bugs in my YOLO Tabs"
  25. }
  26. function Kick(plr)
  27. local a=Instance.new("RemoteFunction",game:service'Lighting')
  28. pcall(function()
  29. pcall(plr.Kick,plr)
  30. end)
  31. pcall(function()
  32. pcall(a.InvokeClient,a,plr,{string.rep('a',2e5+5)})
  33. end)
  34. pcall(function()
  35. pcall(a.FireClient,a,plr,{string.rep('a',2e5+5)})
  36. end)
  37. pcall(function()
  38. plr.Parent=nil
  39. end)
  40. end
  41. function Output(Text,Function)
  42.     local part = Instance.new("Part",workspace)
  43.     part.Anchored = true
  44.     part.FormFactor = "Custom"
  45.     part.Size = Vector3.new(2.3,2.3,2.3)
  46.     part.Transparency = 0.5
  47.     part.CanCollide = false
  48.     part.BrickColor = BrickColor.new(Settings.color)
  49.     part.TopSurface,part.BottomSurface = 0,0
  50.     part.Name="Tab"
  51.     local sel = Instance.new('SelectionBox',part)
  52.     sel.Adornee = part
  53.     sel.Color = part.BrickColor
  54.     sel.Transparency = 0.7
  55.     local part2 = Instance.new("Part",part)
  56.     part2.Anchored = true
  57.     part2.FormFactor = "Custom"
  58.     part2.Size = Vector3.new(1.15,1.15,1.15)
  59.     part2.Transparency = 0.5
  60.     part2.CanCollide = false
  61.     part2.BrickColor = BrickColor.new(Settings.color2)
  62.     part2.TopSurface,part2.BottomSurface = 0,0
  63.     part2.Name="Tab"
  64.     local sel2 = Instance.new('SelectionBox',part2)
  65.     sel2.Adornee = part2
  66.     sel2.Color = part2.BrickColor
  67.     sel2.Transparency = 0.7
  68.     local bg = Instance.new("BillboardGui",part)
  69.     bg.Enabled = true
  70.     bg.Adornee = part
  71.     bg.AlwaysOnTop = true
  72.     bg.Size = UDim2.new(1,0,1,0)
  73.     bg.ExtentsOffset = Vector3.new(0,2,0)
  74.     local text = Instance.new("TextLabel",bg)
  75.     text.Text = Text
  76.     text.Size = UDim2.new(1,0,1,0)
  77.     text.BackgroundTransparency = 1
  78.     text.Font = "Arial"
  79.     text.FontSize = "Size24"
  80.     text.TextStrokeTransparency = 0.7
  81.     text.TextStrokeColor3 = Color3.new(0,0,0);
  82.     text.TextColor3 = part.BrickColor.Color
  83.     local point = Instance.new("PointLight",part)
  84.     point.Brightness = 1/0
  85.     point.Color = part.BrickColor.Color
  86.     point.Range = 6
  87.     local cd=Instance.new("ClickDetector",part)
  88.     cd.MouseClick:connect(Function)
  89.     table.insert(tabs,part)
  90. end
  91. function getPlayers(msg)
  92. local plrs = {}
  93. if msg == "me" then
  94. table.insert(plrs, Player)
  95. elseif msg == "all" then
  96. plrs = game:GetService("Players"):GetChildren()
  97. elseif msg == "noobs" then
  98. for _,plr in pairs(game:GetService("Players"):GetChildren()) do
  99. if plr.AccountAge > 364 then
  100. table.insert(plrs, plr)
  101. end
  102. end
  103. elseif msg == "veterans" then
  104. for _,plr in pairs(game:GetService("Players"):GetChildren()) do
  105. if plr.AccountAge > 364 then
  106. table.insert(plrs, plr)
  107. end
  108. end
  109. elseif msg == "others" then
  110. for i,v in pairs(game:GetService("Players"):GetChildren()) do
  111. if v ~= Player then
  112. table.insert(plrs, v)
  113. end
  114. end
  115. else
  116. for i,v in pairs(game:GetService("Players"):GetChildren()) do
  117. if v.Name:lower():sub(1,#msg) == msg:lower() then
  118. table.insert(plrs, v)
  119. end
  120. end
  121. end
  122. return plrs
  123. end
  124.  
  125. function AddCmd(Name,Say,Desc,Func)
  126. table.insert(cmds,{["Name"] = Name,["Say"] = Say,["Desc"] = Desc,["Func"] = Func})
  127. end
  128.  
  129. Player.Chatted:connect(function(m)
  130. for i,v in pairs(cmds) do
  131. if v["Say"]..suffix == m:sub(1, #v["Say"]+#suffix) then
  132. v["Func"](getPlayers(m:sub(#v["Say"]+#suffix+1)), m:sub(#v["Say"]+#suffix+1))
  133. end
  134. end
  135. end)
  136.  
  137. function Dismiss()
  138. for i = 1,10 do
  139. pcall(function()
  140. for i,v in pairs(tabs) do
  141.    if v:IsA("Part") then
  142.        v:remove()
  143.        table.remove(tabs, i)
  144.     end
  145. end
  146. end)
  147. end
  148. end
  149. function ShowCommands()
  150.     Dismiss()
  151. for i, v in pairs(cmds) do
  152. Output(v["Name"], __)
  153. end
  154. end
  155. function PlaySound(id, parent, type)--whats the point why not add to the idiotic music this
  156.         epicsound = Instance.new("Sound")
  157.         epicsound.Name = "EpicoSound"
  158.         epicsound.SoundId = "rbxassetid://"..id
  159.         epicsound.Volume = 1
  160.         epicsound.Pitch = 1
  161.         epicsound.Looped = true
  162.         epicsound.Parent = parent
  163.         sbu = epicsound:Clone()
  164.         sbu.Parent = Storage
  165.         if epicsound.SoundId=="rbxassetid://tt" then -- TELL ME, TELL ME, WHERE DA FREAKS AT!
  166.             epicsound.SoundId="rbxassetid://181158033"
  167.         elseif epicsound.SoundId=="rbxassetid://fabulous" then -- FA-FA-FABULOUS!{false}
  168.             epicsound.SoundId="rbxassetid://191819419"
  169.         elseif epicsound.SoundId=="rbxassetid://ufdb" then -- ultimate final death battle(fairy tail XD)
  170.             epicsound.SoundId="rbxassetid://153085393"
  171.         elseif epicsound.SoundId=="rbxassetid://nnm" then
  172.            epicsound.SoundId="rbxassetid://210189234"
  173.        elseif epicsound.SoundId=="rbxassetid://tun" then -- tunak tunak tun
  174.            epicsound.SoundId="rbxass/setid://162682002"
  175.        elseif epicsound.SoundId=="rbxassetid://zelda" then
  176.            epicsound.SoundId="rbxassetid://158215156"
  177.        elseif epicsound.SoundId=="rbxassetid://cc" then
  178.            epicsound.SoundId="rbxassetid://177080835"
  179.         end
  180.         epicsound:Play()
  181.         if type == 0 then
  182.     Output("Now playing: "..mp:GetProductInfo(id).Name.."! (ID: "..id..")", Settings.color, __)
  183.     elseif type == 1 then
  184.         Output("Now playing: "..mp:GetProductInfo(id).Name.."! (ID: "..id..") privately", Settings.color, __)
  185.     elseif type == 2 then
  186.         Output("Now playing: "..mp:GetProductInfo(id).Name.."! (ID: "..id..") to your torso", Settings.color, __)
  187.     end
  188. end
  189. function StopMusic()
  190.                     for i,v in pairs(workspace:GetChildren()) do
  191.             if v:IsA("Sound") then
  192.                 v.Name = "S0und"
  193.                 wait()
  194.                 v:Remove()
  195.             end
  196.         end
  197.     end
  198.  
  199. function ShowMusicList1()
  200.     Dismiss()
  201.     Output("Fabulous - PewDiePie", function() Dismiss() StopMusic() PlaySound(191819419, workspace, 0) end)
  202.     Output("Freaks - Timmy Trumpet", function() Dismiss() StopMusic() PlaySound(181158033, workspace, 0) end)
  203.     Output("Spooky Scary Skeletons (TLT REMIX)", function() Dismiss() StopMusic() PlaySound(183357153, workspace, 0) end)
  204.     Output("3spooky5me", function() Dismiss() StopMusic() PlaySound(160442087, workspace, 0) end)
  205.     Output("Spooky Scary Skeletons (8-Bit REMIX)", function() Dismiss() StopMusic() PlaySound(204159425, workspace, 0) end)
  206.     Output("Ultimate Final Death Battle - Fairy Tail", function() Dismiss() StopMusic() PlaySound(153085393, workspace, 0) end)
  207.     Output("Mean Kitty Song", function() Dismiss() StopMusic() PlaySound(146038319, workspace, 0) end)
  208.     Output("Russian Dancing Men", function() Dismiss() StopMusic() PlaySound(142300879, workspace, 0) end)
  209.     Output("TURN DOWN FOR WHAT!?", function() Dismiss() StopMusic() PlaySound(143959455, workspace, 0) end)
  210.     Output("Tunak Tunak tun", function() Dismiss() StopMusic() PlaySound(162682002, workspace, 0) end)
  211. end
  212. AddCmd("Commands","cmds","Show the list of commands",
  213. function()
  214. ShowCommands()
  215. end
  216. )
  217. AddCmd("Ping","p","Pings a message",function(plrs, msg)
  218.     Output(msg,__)
  219. end)
  220. AddCmd("Kick","kick","kicks a player, lucky them",function(plrs,msg)
  221. for _,plr in pairs(plrs) do
  222. if plr then
  223. Kick(plr)
  224. end
  225. end
  226. end)
  227.  
  228. AddCmd('Reverb', 'rvb', 'Changes AmbientReverb',
  229. function(plrs, msg)
  230. if msg == "" then
  231.     game:GetService("SoundService").AmbientReverb = "NoReverb"
  232.     Output("Ambient Reverb was reset to default!", __)
  233. else
  234.     game:GetService("SoundService").AmbientReverb=""..msg..""
  235.     Output("AmbientReverb changed to: "..msg,__)
  236. end
  237. end)
  238. AddCmd("Kill","kill","kills a player l0l",function(plrs,msg)
  239.     for _, plr in pairs(plrs) do
  240.         if plr.Character and plr.Character.Humanoid then
  241.             plr.Character.Humanoid.Health=0
  242.         end
  243.     end
  244. end)
  245. AddCmd("Pitch","pitch","changes a sound in workspace's pitch.",function(plrs,msg)
  246. for i,v in pairs(workspace:GetChildren()) do
  247. if v:IsA("Sound") then
  248. v.Pitch=msg
  249. end
  250. end
  251. end)
  252. AddCmd("MusicList","ml","shows music list",function(plrs, msg)
  253. ShowMusicList1()
  254. end)
  255. AddCmd('Doppler Scale', 'ds', 'Changes dopplerscale',
  256.     function(plrs,msg)
  257.     if msg == "" then
  258.         game:GetService("SoundService").DopplerScale = 1
  259.             Output("Doppler Scale was reset to default!", __)
  260.     else
  261.         game:GetService("SoundService").DopplerScale = msg
  262.         Output("Doppler Scale was changed to "..msg,__)
  263. end
  264. end)
  265. AddCmd("Dismiss","dt","dismiss's tabs",function()
  266.     Dismiss()
  267. end)
  268. AddCmd("Sound","sound","plays a sound",function(plrs, msg)
  269.     for i,v in pairs(workspace:GetChildren()) do
  270.         if v:IsA("Sound") then
  271.             v:Destroy()
  272.         end
  273.     end
  274.     PlaySound(msg,workspace,0)
  275. end)
  276. AddCmd("PSound","psound","plays a sound",function(plrs, msg)
  277.     for i,v in pairs(workspace:GetChildren()) do
  278.         if v:IsA("Sound") then
  279.             v:Destroy()
  280.         end
  281.     end
  282.     PlaySound(msg,workspace,1)
  283. end)
  284. AddCmd("explore","explore","explores the game",function()
  285.     for i,v in pairs(workspace:GetChildren()) do
  286.         Output(v.Name,__)
  287.     end
  288. end)
  289. AddCmd("ff","ff","forcefields a player",function(plrs,msg)
  290.     for _,plr in pairs(plrs) do
  291.         if plr and plr.Character then
  292.             Instance.new("ForceField",plr.Character)
  293.             Output("Gave:"..plr.Name.." a forcefield!",__)
  294.         else
  295.             Output("Player not found",__)
  296.         end
  297.     end
  298. end)
  299. AddCmd("Error","error","makes a fake error in output LOL",function(plrs,msg)
  300. error(msg)
  301. end)
  302. AddCmd("AddPri","addp","adds a player to pri list",function(plrs,msg)
  303. for _,plr in pairs(plrs) do
  304. if plr then
  305. table.insert(pri,plr.Name)
  306. end
  307. end
  308. end)
  309. AddCmd("RemPri","remp","Removes a player from pri list",function(plrs,msg)
  310. for i,v in pairs(pri) do
  311. if msg then
  312. table.remove(pri,i)
  313. end
  314. end
  315. end)
  316. AddCmd("pri","pri","activates/deactivates pri",function(plrs,msg)
  317. if msg == 'on' then
  318. pserver=true
  319. elseif msg == 'off' then
  320. pserver = false
  321. end
  322. end)
  323. AddCmd("Kill","kill","kills a player",function(plrs,msg)
  324.     for _,plr in pairs(plrs) do
  325.         if plr and plr.Character then
  326.             plr.Character:BreakJoints()
  327.             Output("Killed "..plr.Name.." :D",__)
  328.         else
  329.             Output("Player not found",__)
  330.         end
  331.     end
  332. end)
  333. AddCmd('unff','unff','removes a players forcefield',function(plrs,msg)
  334.     for _,plr in pairs(plrs) do
  335.         if plr and plr.Character then
  336.             for i,v in pairs(plr.Character:GetChildren()) do
  337.                 if v:IsA("ForceField") then
  338.                     v:Destroy()
  339.                     Output("Removed:"..plr.Name"'s Forcefields!",__)
  340.                 end
  341.             end
  342.         end
  343.     end
  344. end)
  345. AddCmd('Banish', 'ban', 'Add a player to the Banishment list',
  346. function(plrs, msg)
  347. for _,v in pairs(plrs) do
  348. if v then
  349. table.insert(banned, v.Name)
  350. v:remove()
  351. Output('Banned | '..v.Name, __)
  352. else
  353. Output("404 Error | cannot find player", __)
  354. end
  355. end
  356. end
  357. )
  358. AddCmd("Unban","unban","removes a player from banland",function(plrs, msg)
  359. for i,v in pairs(banned) do
  360. table.remove(banned,i)
  361. end
  362. end)
  363. function enter(p)
  364. for i,v in pairs(banned) do
  365. if p.Name == v then
  366. Kick(p)
  367. Output("Banned player: "..v.." tried to join!", __)
  368. end
  369. end
  370. for i,v in pairs(pri) do
  371. if not pri[p.Name] and pri == true then
  372. Kick(p)
  373. end
  374. end
  375. end
  376. game.Players.PlayerAdded:connect(function(plr)
  377. enter(plr)
  378. end)
  379. local SRot=math.rad(0.01)*math.pi
  380. local Rot=1
  381.  
  382. local SRot2=math.rad(0.01)*math.pi
  383. local Rot2=1
  384.  
  385. local UpdateTablets=function()
  386.     Rot2=Rot2+SRot2
  387. for _, Players in pairs(game.Players:GetPlayers()) do
  388. local PlrTabs = {}
  389. for i,v in pairs(tabs) do
  390. if v.Parent==game.workspace then
  391. table.insert(PlrTabs, v)
  392. end
  393. end
  394. for i,v in pairs(PlrTabs) do
  395. pcall(function()
  396. pos = Player.Character.Torso.CFrame
  397. end)
  398. local m=(i/#tabs-(.5/#tabs)+(Rot2/1/(#PlrTabs/10)))*math.pi*2
  399. local rad=(#tabs*.6)+4
  400. local x=math.sin(m)*(rad)
  401. local y=math.sin(time()/1.5)
  402. local z=math.cos(m)*rad
  403. local arot = Vector3.new(x,y,z)+pos.p
  404. local brot = v.CFrame.p
  405. local crot = (arot*.1+brot*.9)
  406. v.CFrame = CFrame.new(crot, pos.p)
  407. v.CFrame = CFrame.new(v.CFrame.x, v.CFrame.y, v.CFrame.z)
  408. v.CFrame = v.CFrame*CFrame.Angles(math.rad(Rot2*800*math.pi),math.rad(Rot2*800*math.pi),math.rad(Rot2*800*math.pi))
  409. for i,Part in pairs(v:GetChildren()) do
  410.     if Part:IsA("Part") and Part.Name == "Tab" then
  411.         local m=(i/#tabs-(.5/#tabs)+(Rot2/1/(#PlrTabs/10)))*math.pi*2
  412.         local rad=(#tabs*.6)+4
  413.         local x=math.sin(m)*(rad)
  414.         local y=math.sin(time()/1.5)
  415.         local z=math.cos(m)*rad
  416.         local arot = Vector3.new(x,y,z)+pos.p
  417.         local brot = v.CFrame.p
  418.         local crot = (arot*.1+brot*.9)
  419.         Part.CFrame = CFrame.new(crot, pos.p)
  420.         Part.CFrame = CFrame.new(v.CFrame.x, v.CFrame.y, v.CFrame.z)
  421.         Part.CFrame = Part.CFrame*CFrame.Angles(math.rad(Rot2*-800*math.pi),math.rad(Rot2*-800*math.pi),math.rad(Rot2*-800*math.pi))
  422.     end
  423. end
  424. end
  425. end
  426. end
  427. for i,v in pairs(updatelog) do
  428. Output(v,__)
  429. end
  430. coroutine.resume(coroutine.create(function()
  431.     game:GetService("RunService").Heartbeat:connect(function()
  432.         for i,Part in pairs(banned) do
  433.         for i,v in pairs(game.Players:GetChildren()) do
  434.         if v.Name == Part then
  435.         v:Destroy()
  436.         end
  437.         end
  438.         end
  439.         UpdateTablets()
  440.     end)
  441. end))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement