Is it possible to change a gui color with a status?

Hello
I’m just wondering if It’s possible to change a color of a gui with a value

I tried making this script but It’s not working. Do I have to change the script or is it just not possible to do what I try to do

So if i change that value to a color code like “255,0,0”, nothing is happening

this is the code I use;

while true do
	local Color = game.ReplicatedStorage.Color --Color is the value
	wait(0.2)
	script.Parent.BackgroundColor3 = Color3.new(Color.Value) --BackGroundColor is from a frame
end

Could anyone maybe help me and if so, thanks if you want :smile:

is the color value a Color3Value?

1 Like

Color3Values store Color3 values already, so you don’t need to pass their values as arguments to the Color3 class constructor function Color3.new(). The following would suffice.

script.Parent.BackgroundColor3 = Color.Value