Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to Make Things Happen When The Cursor Hovers Over a GUI?

Asked by 5 years ago

I know there are functions for clicking and releasing GUI buttons, but what about simply moving over them? How would I do this?

0
MouseEnter and MouseLeave Rare_tendo 3000 — 5y

1 answer

Log in to vote
1
Answered by
DanzLua 2879 Moderation Voter Community Moderator
5 years ago
Edited 5 years ago

You can connect a function to a MouseEnter or MouseLeave event that most guiobjects have.

ui.MouseEnter:Connect(function()

end)
ui.MouseLeave:Connect(function()

end)
Ad

Answer this question