BackgroundColor3 not changing

For some reason the backgroundcolor doesn’t change when I describe the path like this:

local StarterGUI = game:GetService("StarterGui")
while wait(0.07) do
	StarterGUI.Ui.Settings.Gear.Open.OverheadGUI.ON.BackgroundColor3 = Color3.new(1, 0, 0)
	StarterGUI.Ui.Settings.Gear.Open.OverheadGUI.OFF.BackgroundColor3 = Color3.new(0.258824, 1, 0.129412)
	print("hey")
end

But if I use script.Parent instead of the long line it works. The thing is I need the long line.

I’d suggest using Color3.fromRGB instead of Color3.new.

Use PlayerGui instead of StarterGui
PlayerGui | Roblox Creator Documentation

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.