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

Text Color Change Question?

script.Parent.MouseEnter:connect(function() script.Parent.RandomText.TextStrokeColor3 = Color3.new(53, 255, 110) end)

script.Parent.MouseLeave:connect(function() script.Parent.RandomText.TextStrokeColor3 = Color3.new(255, 255, 255) end)

Why does the color change to (13515, 65025, 28050) when my mouse enters the button and (65025, 65025, 65025) when my mouse leaves the button Instead of the numbers I specified?

1 answer

✓ Accepted answer

With Color3.new you have to divide each value (R, G, B) by 255 to get a semi-accurate color to what you want to achieve.

Instead, try changing 'Color3.new' to 'Color3.fromRGB' so you don't have to divide anything by 255 and it's much easier.

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