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

MouseHover for parts?

Asked by 8 years ago

Is there a mousehover function for parts? Or does it only work for GUI's?

This is crucial part of my development stage, so some help would be EXTREMELY helpful ;)

1 answer

Log in to vote
0
Answered by
Kryddan 261 Moderation Voter
8 years ago

You can add a ClickDetector to parts, this ClickDetectordoes what you think it would do, It detects when a part (or model) is clicked on by a player. There is also an event for MouseHoverEnter and MouseHoverLeave, well they explain themselves. They are probably what you are looking for.

script.Parent.ClickDetector.MouseHoverEnter:connect(function()
    --code
end)

script.Parent.ClickDetector.MouseHoverLeave:connect(function()
    --code
end)

Ad

Answer this question