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

TextColor3 not changing on request?

Trying to make a boarding gate, I want to change the TextColor3 on the information board, but it's being set to 0,0,0.

I tried using .fromRGB but it doesn't work.

Here's an example of my script:

boarding.TextColor3 = Color3.fromRGB(script.Parent.TextButton4.TextColor3)

Full script:

script.Parent.TextButton4.MouseButton1Click:Connect(function()
	boarding.Text = script.Parent.TextButton4.Text
	boarding.TextColor3 = Color3.new(tonumber(script.Parent.TextButton4.TextColor3))
end)

4 comments

0

Change fromRGB to new ?

0

That dosent work either.

0

Can you post full script, maybe the problem is not TextColor3.

0

Sent the full script on the page!

4 answers

✓ Accepted answer

Try doing this.

boarding.TextColor3 = script.Parent.TextButton4.TextColor3

I think the problem is that you used fromRGB Color3 instead of regular Color3.

1 comment

0

That worked, oddly enough!

Try

boarding.TextColor3 = Vector3.new(script.Parent.TextButton4.TextColor3)

I'm not sure if it will work but it might.

2 comments

0

bad argument #3 (Color3 expected, got Vector3)

0

oh

Hello!

To solve this issue, perhaps you can do this..?

boarding.TextColor3 = Color3.new(255,255,255) --Why not put in regular numbers?

If that doesn't work, try using .fromRGB().

this just hurts inside

script.Parent.TextButton4.MouseButton1Click:Connect(function()
    boarding.Text = script.Parent.TextButton4.Text
    -- the textcolor already exists, why do you need to create another one?
    boarding.TextColor3 = script.Parent.TextButton4.TextColor3
end)

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