I’m not too sure if it’s because of the script or something else so I’m putting it in scripting support. However I just have a basic script in StarterPlayerScripts that simply changes the mouse icon to a 5x5 square.
In studio it works fine however inside of roblox it becomes red and transparent in certain regions, which can make it look like bars.
I’ve done some diving and I figured one potential thing could be the cursor image I uploaded, however the image is a png, 5x5, and only 129 BYTES. There’s no way the cursor is the issue right?
Here’s the script:
local UIS = game:GetService("UserInputService")
UIS.MouseIconEnabled = true
UIS.MouseIcon = "rbxassetid://126874732519911"
I would like to show an example of the cursor difference, but for some reason my cursor isnt picking up in my screenshots or anything.
The ImageLabel should act as the cursor itself, rather than a placeholder for the image id. Set the position of the ImageLabel to the position of the mouse within a loop (RenderStepped).
Example:
Make sure MouseIconEnabled is set to false such that the default cursor doesn’t override the ImageLabel, and the ImageLabel anchor point is set to (0.5,0.5). This represents the pivot point of the image label, which will position the center of your image label to the mouse (rather than the top-left).