Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Using UDIM2 to resize my mouse GUI?

local mouse = game.Players.LocalPlayer:GetMouse()
mouse.Icon = "http://www.roblox.com/asset?id=256125664"
Icon.Size = UDim2.new(0, 64, 0, 64)

I'm using a decal so it's really huge and blocks my screen, I would like to resize my mouse gui. Everything works except line3,I don't think I'm using it correctly.

1 comment

0

"Icon" isn't a variable that you have defined, and the size of the mouse icon cannot be changed. The icon itself has to be padded with transparent space.

2 answers

✓ Accepted answer

Error

Icon is a property of PlayerMouse, not a variable you have defined in your script. There should be a red underline where Icon is that says it doesn't exist.

Despite this error, you still cannot change the size of ROBLOX's mouse icon regardless. There are however, alternative solutions.

Solutions

  • Set the mouse icon to something invisible, and have an ImageLabel follow your mouse's position

  • Set the mouse icon to an image with a larger resolution.

If you have any questions about any of these solutions, just let me know.

Even though you might not be able to change the size, if you could then just use the default way to tween size and position!

Icon:TweenSize(UDim2.new(0, 64, 0, 64), "In", "Quint", 0.1)

This discussion is preserved as it was. New answers, comments, and votes are closed.