Is it currently possible to detect if the mouse is hovering any clickable frame/button?
Let’s say when the player in my games runs a function when MouseButton1 is clicked/inputted, but if the mouse hovers over a clickable frame/button when clicked, then don’t detect the click?
Hovering and not-hovering:
![]()
UserInputService.InputBegan:Connect(function(inputObject)
-- check if mouse is hovering clickable image/button then return nothing to prevent below to run.
if inputObject.UserInputType == Enum.UserInputType.MouseButton1 then
print("Bla")
end
end