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

How to hover and select?

Asked by 9 years ago

How do I make it where if you Hover over a box a SelectionBox shows up and go's away?

0
This isn't a request site... Please attempt it first and if it doesn't work we might help you because you tried... General_Scripter 425 — 9y

1 answer

Log in to vote
0
Answered by
Marios2 360 Moderation Voter
9 years ago

I am not going to make you the whole thing, but i'll tell you how you can detect hovering your mouse over a Part in Workspace:

For Parts to detect Mouse interaction, you need to add a ClickDetector as their child. Then, inside ascript inside a ClickDetector inside said Part:

script.Parent.MouseHoverEnter:connect(function()
--The rest of the script is up to you and only you
end)

Visit this wiki page documenting the ClickDetector for a few more info on how to use it (And a small example of how to use one)

Ad

Answer this question