Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why isn't my color change script working the way I want it to?

while true do
	script.Parent.TextColor3 = Color3.new(tonumber(script.Parent.Parent.r.Text),tonumber(script.Parent.Parent.g.Text),tonumber(script.Parent.Parent.b.Text))
	wait()
end

it not showing the correct color

1 comment

1 answer

✓ Accepted answer

Try doing .fromRGB: Link (Go2 Syntax, # 3)

while true do
    script.Parent.TextColor3 = Color3.fromRGB(tonumber(script.Parent.Parent.r.Text),tonumber(script.Parent.Parent.g.Text),tonumber(script.Parent.Parent.b.Text))
    wait()
end

OR: Do the RGB values seperately.

while true do
	script.Parent.TextColor3.R = tonumber(script.Parent.Parent.r.Text)
	script.Parent.TextColor3.G = tonumber(script.Parent.Parent.g.Text)
	script.Parent.TextColor3.B = tonumber(script.Parent.Parent.b.Text)
end

1 comment

0

I never tested it, FYI.

This discussion is preserved as it was. New answers, comments, and votes are closed.