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

Why doesnt the background change when players mouse is on the button?

I want to make the transparency change when the players mouse is on the button not clicking it just hovering it kind of thing here is the script

function MouseEnter() script.Parent.BackgroundTransparency = 0 end function MouseLeft() script.Parent.BackgroundTransparency = 1 end script.Parent:MouseEnter(MouseEnter) script.Parent:MouseLeave(MouseLeft)

1 answer

✓ Accepted answer

Your connection lines aren't good. Try this.

script.Parent.MouseEnter:connect(function()
	script.Parent.BackgroundTransparency = 0
end)

script.Parent.MouseLeave:connect(function()
	script.Parent.BackgroundTransparency = 1
end)

2 comments

0

Thank you :D your Awesome you deserve a medal

0

Thanks for the comment. Heh, first time I got one of those. Would you mind accepting my answer (Sorry this is a bit late)

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