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

How to change color of textButton Text when your mouse hovers?

function onHover()
	script.Parent.FontSize = "Size60"
	script.Parent.TextColor3 = script.Parent.TextColor3.new(124, 0, 0)
end

script.Parent.MouseEnter:connect(onHover)

function offHover()
	script.Parent.FontSize = "Size48"
end

script.Parent.MouseLeave:connect(offHover)

Alright so the only line that I need help with here is line 3, because I have no clue what I would write there to change the color :/ thanks for help in advance!

1 answer

✓ Accepted answer

TextColor uses Color3.new. So, changing it to script.Parent.TextColor3 = Color3.new(124, 0, 0) would be legit in the style.

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