Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 6 years ago
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

0
picture: http://imgur.com/a/W0cuA bossay8 8 — 6y

1 answer

Log in to vote
0
Answered by
thesit123 509 Moderation Voter
6 years ago

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
0
I never tested it, FYI. thesit123 509 — 6y
Ad

Answer this question