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

Using UDIM2 to resize my mouse GUI?

Asked by
Yozoh 146
8 years ago
Edited 8 years ago
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.

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. 1waffle1 2908 — 8y

2 answers

Log in to vote
1
Answered by 8 years ago

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.

Ad
Log in to vote
-1
Answered by 8 years ago

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)

Answer this question