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 ;)
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 ;)
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)
This discussion is preserved as it was. New answers, comments, and votes are closed.