Custom tool cursors work in Studio, but not in-experience

Repro Steps

  1. Create a Tool with a LocalScript inside of it
  2. With that LocalScript, change a player’s mouse icon to something custom when it is equipped
  3. Observe setting a custom mouse icon works within Roblox Studio
  4. Publish your experience
  5. Play your experience using the Roblox app
  6. Equip your tool
  7. Observe setting a custom mouse icon does not work outside of Studio

Repro File: CursorRepro.rbxm (3.9 KB)

image
Expected Result (Roblox Studio)
My custom mouse cursor does indeed appear


Actual Outcome (In-Experience)
You either have the default Roblox cursor or no mouse icon

Even stranger, if you set a custom mouse cursor, then mouse out of the app window, then mouse back in, you will have no cursor.

This appears to be a recent regression. I have not recently modified code in any of my experiences that experience this bug.

Thanks for the report! We’ve filed a ticket in our internal database.

1 Like

This is still an issue as of July 2023.

Looked into this issue and the problem is there is a limit on the size that a cursor image can be, it needs to be less than or equal 256x256 pixels. The rbxassetid you are attempting to use has an image size of 420x420 pixels.

I’ll add a warning that notifies you if the image is too large, and use a center crop in order to show something. This would just work in your case, since you have a lot of empty space around your cursor.

1 Like

This should now be resolved, thanks for the report!

1 Like

Can confirm it works again as expected! Many thanks. :raised_hands:

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.