Achieve
I’m making a script that will change the color of everything in the U.I to a certain color for each item.
Issue
The issue is that the color changes to complete black and I have no idea why. You’ll see more down in the photos.
Solutions
- I’ve tried changing the Color3 values to BrickColorValues
- I’ve tried changing the fromRGB to new & FromHSV and the result was the same.
Photos
What Happens
What's supposed to happen
Where the Values & Script are at.
Script
--//By MillerrIAm\\--
--/Variables\--
local MainUI = script.Parent.Parent
local Colors = script.Parent
--/Main Code\--
while script.Disabled == false do
wait(0.5)
for x,UI in pairs (MainUI:GetChildren()) do
if UI:IsA("Frame") then
UI.BackgroundColor3 = Color3.fromRGB(Colors.BackgroundColor.Value)
UI.BorderColor3 = Color3.fromRGB(Colors.OutlineColor.Value)
wait(0.05)
elseif UI:IsA("TextButton") then
UI.BackgroundColor3 = Color3.fromRGB(Colors.ButtonColor.Value)
UI.TextColor3 = Color3.fromRGB(Colors.ButtonTextColor.Value)
wait(0.05)
end
end
end
Thank you for any help you can give me.