FantasyGamer

[VSB] GameList Theme

Nov 22nd, 2017
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.32 KB | None | 0 0
  1. -- Made by fantasygamery
  2. --User Variables
  3. -- Colors: Blue , Red and Purple
  4. local UColor= 'Purple'
  5.  
  6. --
  7. local Pl=game:service'Players'.LocalPlayer:FindFirstChildOfClass'PlayerGui'
  8. local Color=function(_1,_2,_3) return Color3.new(_1/255,_2/255,_3/255) end
  9. function setProps(Table,obj)
  10. for prop,val in pairs(Table) do
  11.     obj[prop]=val
  12. end
  13. end
  14.  
  15.  
  16.  
  17. function _do(gui)
  18.  
  19. local GF=gui.Frame
  20. -- Function
  21. local Frame ={
  22.     ['BackgroundColor3']=(UColor:lower() =='blue' and Color(0, 170, 255) or (UColor:lower()=='red' and Color(147, 0, 0) or UColor:lower()=='purple' and Color(85, 0, 127))),
  23.     ['BackgroundTransparency']=.3,
  24. }
  25.  
  26. local Refresh ={
  27.     ['BackgroundColor3']=Color(216, 216, 216),
  28.     ['BackgroundTransparency']=.7,
  29.     ['BorderSizePixel']=1,
  30.     ['BorderColor3']=Color(216, 216, 216),
  31.  
  32.  
  33.  
  34. }
  35.  
  36. local Exit ={
  37. ['Size']=UDim2.new(0,70,0,20),
  38.  
  39. }
  40.  
  41. local SCFrame ={
  42.  
  43.  
  44. }
  45.  
  46. local Default ={
  47.     ['Expand']={},
  48.     ['Body']  ={},
  49.     ['Join']  ={},
  50. }
  51.  
  52.  
  53. -- ProtSet
  54.  
  55. GF.Visible=false
  56. setProps(Frame,GF)
  57. setProps(Refresh,GF:WaitForChild'Refresh')
  58. setProps(Exit,GF:WaitForChild'Exit')
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67. GF.Visible=true
  68. end
  69. Pl.ChildAdded:Connect(function(g)
  70.     if not g.Name == 'SB_GameList' then return end
  71.     wait(1)
  72.     _do(g)
  73. end)
  74.  
  75.  
  76. for _,g in pairs(Pl:GetChildren()) do
  77.         if  g.Name == 'SB_GameList' then _do(g) end
  78.    
  79. end
Advertisement
Add Comment
Please, Sign In to add comment