How can I detect which mouse pointer is showing?

So how can I detect if the ArrowCursor, ArrowFarCursor, or IBeamCursor is showing?

If you didn’t know, the ArrowCursor is the hand icon that shows when hovering over GUI or when you’re holding a tool.
The ArrowFarCursor is the regular mouse cursor.
The IBeamCursor shows when hovering over a textbox.

How can I detect which one of those is showing in-game?

image

1 Like

Here’s an article on changing the mouse icon. Customizing Mouse Icons | Roblox Creator Documentation

Here’s the wiki article for the Mouse object with the .Icon property.
https://developer.roblox.com/en-us/api-reference/property/Mouse/Icon

This’ll tell you how to change the Icon of your mouse. You would just need to make the code for finding if they’re hovering.

Then an easy way to do that is check when the mouse moves and check the Mouse.Target property.
If that property is what you’re wanting to change the cursor over, or the name is in a list of objects to change the cursor, have it change.

I think I need to word it better so I’m gonna change the topic so I can make it more clear.