Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How to change custom cursor size?

Asked by
Primpy 25
7 years ago

Hello, ScriptingHelpers. I'm working on a game and I want to make a custom cursor for reloading a weapon. I have no issues with the script, my only problem is the size of the custom cursor. I tested the cursor with some random decals and it always displays too large. How can I change the size so it fits better? I tried to look on the internet but I couldn't find anything helpful. I'd really appreciate an answer, thanks :)

Probably not necessary, but...

mouse.Icon = "http://www.roblox.com/asset/?id=68207337"

1 answer

Log in to vote
1
Answered by
KarlXYZ 120
7 years ago

The problem you have is the original size of the images when they were uploaded to ROBLOX. The image you have used has a resolution of 256x256, so in-game, the cursor will have a size of 256x256.

To change the size, simply upload an image that is at the exact size you would want it to appear in-game. Remember that the cursor image is centred over where the mouse would click, take a look at the default ROBLOX cursor to see what I mean.

0
Thank you so much! ^u^ Primpy 25 — 7y
Ad

Answer this question