is there anyway to check if a players mouse is touching a brick? I don't mean like clicking a brick, I mean like a mouse that is within the bricks pixel positions on the players screen. sorry if its hard to explain
✓ ANSWER ACCEPTED
Is there anyway to check the placement (mouse)?
2 answers
✓ Accepted answer
If you don’t want any click detectors then you can put this in a local script inside of starter player scripts:
While wait(1) do
if game.Players.LocalPlayer:GetMouse().Target.Name == “fill in” then
-- do what you want
end
end
Hope I helped.
Like FlippinAwesomeCrew said you can use the event of a ClickDetector MouseHoverEnter
workspace.Part.ClickDetector.MouseHoverEnter:Connect(function(player)
print(player.Name.." has mouse over brick!")
end)
Edit: Should you need to check if the mouse is there at a random point of time and don't want an actual event then you can use the property of Mouse Target
1 comment
0
thank you
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
try using a click detector, with no reaction.
Dont use a click detector...