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

Why is my button not changing color when my mouse enters it?

local script:

local button = script.Parent
local running = false
button.MouseEnter:Connect(function()
	print("runned")
	button.Image = Color3.new(200, 200, 191)
end)

1 comment

0

What is local running = false do in this script?

1 answer

✓ Accepted answer

use BackgroundColor3 and Color3.fromRGB

button.BackgroundColor3 = Color3.fromRGB(200,200,191)

2 comments

0

Thanks for the help!

0

If (for some reason) you wanted to continue using Color3.new() instead of Color3.fromRGB(), since Color3.new() requires r,g,b to be 0-1 you could do Color3.new(200/255, 200/255, 191/255)

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