Advertisement
Surpentine360

Oi

Mar 29th, 2019
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. local colors = {
  2. Color3.new(0.423529,0.768628,1),
  3. Color3.new(0.576471,0.831373,1),
  4. Color3.new(212,175,55),
  5. Color3.fromRGB(84,170,255),
  6. }
  7.  
  8. local module = {}
  9. module.DarkTheme = function()
  10. for i,v in pairs(game.CoreGui.Venyx:GetDescendants()) do
  11. if v.BackgroundColor3 == Color3.fromRGB(255,255,255) then
  12. v.BackgroundColor3 = Color3.fromRGB(25,25,25)
  13. end
  14. end
  15. for i,v in pairs(game.CoreGui["Venyx Extension"]:GetDescendants()) do
  16. if v.BackgroundColor3 == Color3.fromRGB(255,255,255) then
  17. v.BackgroundColor3 = Color3.fromRGB(25,25,25)
  18. end
  19. end
  20. end
  21.  
  22.  
  23.  
  24. function isColor(color)
  25. for i,v in pairs(colors) do
  26. if v == color then
  27.  
  28. return v
  29. end
  30. end
  31. return false
  32.  
  33. end
  34.  
  35.  
  36. module.setColor = function(color)
  37. for i,v in pairs(game.CoreGui.Venyx:GetDescendants()) do
  38. if isColor(v.BackgroundColor3) or isColor(v.BorderColor3) then
  39. v.BackgroundColor3 = color
  40. v.BorderColor3 = color
  41. elseif v:IsA("TextLabel") and isColor(v.TextColor3) then
  42. v.TextColor3 = color
  43. end
  44. end
  45.  
  46. for i,v in pairs(game.CoreGui["Venyx Extension"]:GetDescendants()) do
  47. if isColor(v.BackgroundColor3) or isColor(v.BorderColor3) then
  48. v.BackgroundColor3 = color
  49. v.BorderColor3 = color
  50. elseif v:IsA("TextLabel") and isColor(v.TextColor3) then
  51. v.TextColor3 = color
  52. end
  53. end
  54. end
  55.  
  56.  
  57.  
  58. module.setTextColor = function(color)
  59. for i,v in pairs(game.CoreGui.Venyx:GetDescendants()) do
  60. if v:IsA("TextLabel") or v:IsA("TextBox") or v:IsA("TextButton") then
  61. v.TextColor3 = color
  62. end
  63. end
  64.  
  65.  
  66. for i,v in pairs(game.CoreGui["Venyx Extension"]:GetDescendants()) do
  67. if v:IsA("TextLabel") or v:IsA("TextBox") or v:IsA("TextButton") then
  68. v.TextColor3 = color
  69. end
  70. end
  71. end
  72.  
  73. return module
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement