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

Mouse Hover over a part?

Asked by 7 years ago

How can I make a part have the light blue outline around the the part as if it was being observed by the players mouse?

1 answer

Log in to vote
0
Answered by 7 years ago
Edited 7 years ago

You can use player:GetMouse().Target in a local script to get the part the player is pointing to. To put a box around it, you can use a SelectionBox. You can create it with Instance.new("SelectionBox"), then set its Parent to the mouse's target.

For more info, visit these links:

http://wiki.roblox.com/index.php?title=API:Class/Mouse/Target http://wiki.roblox.com/index.php?title=API:Class/SelectionBox

Ad

Answer this question