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

TextColor3 not changing on request?

Asked by 4 years ago
Edited 4 years ago

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)
0
Change fromRGB to new ? Nguyenlegiahung 1091 — 4y
0
That dosent work either. loowa_yawn 383 — 4y
0
Can you post full script, maybe the problem is not TextColor3. Block_manvn 395 — 4y
0
Sent the full script on the page! loowa_yawn 383 — 4y

4 answers

Log in to vote
0
Answered by 4 years ago

Try doing this.

boarding.TextColor3 = script.Parent.TextButton4.TextColor3

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

0
That worked, oddly enough! loowa_yawn 383 — 4y
Ad
Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

Try

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

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

0
bad argument #3 (Color3 expected, got Vector3) loowa_yawn 383 — 4y
0
oh kingblaze_1000 359 — 4y
Log in to vote
0
Answered by 4 years ago

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().

Log in to vote
0
Answered by 1 year ago

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)

Answer this question