TextColor doesn't change when Mouse leaves the text

Greetings,

I was making some text editing to make it look better, but by using the code below, it should change to the color when the mouse is in that place, or change back when the mouse leaves. The color changes when the mouse enters, but it doesn’t change back when it leaves. Please help, I really can’t find out why. Thanks, the code is down below.

script.Parent.MouseEnter:Connect(function()
	script.Parent.TextColor3 = Color3.new(255, 255, 255)
end)

script.Parent.MouseLeave:Connect(function()
	script.Parent.TextColor3 = Color3.new(209, 209, 209)
end)

Maybe Color3.fromRGB(value, value, value) would work?
According to this topic:

You are using ‘Color3’ incorrectly. You can divide the RGB Values like this one:

1 Like

Yea, fromRGB works just fine! Thanks a lot!

1 Like