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.
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.
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)