Hi there, I need some help with an accent colour handler that I’m using in my plugin.
It currently doesn’t work, the Colour is in a stringvalue because I don’t know what other value that I can use but it means that this is happening (the textbox is the only thing that has the accent colour handler in it so far)
The script for the accent colour handler is this:
-- Accent Colour Handler
local par = script.Parent
par.BackgroundColor3 = Color3.fromRGB(par.Parent.Parent.Parent.AccentColour.Value)
Please let me know if I need to send more information
I unmarked the solution as it turns out that it’s still not working, trying to figure out what is going wrong, printing the accentvalue shows that it’s setting the colour to black
Changing this shows something that’s even more confusing
I’m leaving the plugins source code here as I honestly do not know what’s happening
How are you setting the AccentColor value? Also, you need to stop using .Parent chains because that makes your scripts messy, makes them hard to read and generally it’s a bad practice.
Well because you obviously are setting the BackgroundColor3 wrong.
Change par.BackgroundColor3 = Color3.fromRGB(par.Parent.Parent.Parent.AccentColour.Value) to just par.BackgroundColor3 = par.Parent.Parent.Parent.AccentColour.Value.
If you are not taking my advice, then why did you post on Help and Feedback? It seems that you apparently know better whats the issue so you should be able to easily solve it on your own.