local mouse = game.Players.LocalPlayer:GetMouse() mouse.Icon = "http://www.roblox.com/asset/?id=365889267"
I got this far, it works! However, there is a problem when I hover over a TextButton! The cursor changes to the standard button cursor. Is there anyway I can also change this.
I think that by default the Gui is supposed to change the Mouse
settings back to how they were every time you enter it. So try putting a script inside of the Gui which would change it back to how it's supposed to be... You could attempt to put a script under the TextButton
which makes it change back to its icon something like this you could put this inside of a script in TextButton
...
local plr = game.Players.LocalPlayer -- Variable for player. local mouse = plr:GetMouse() -- Variable for mouse. script.Parent.MouseEnter:connect(function() -- Anonymous function for the mouse entering the Gui. mouse.Icon = "http://www.roblox.com/asset/?id=365889267" -- Changes icon. end) -- End for anonymous function. script.Parent.MouseLeave:connect(function() -- Anonymous function for the mouse leaving the Gui. mouse.Icon = "http://www.roblox.com/asset/?id=365889267" -- Changes icon. end) -- End for the anonymous function.
Thank you for reading the answer and I hope I helped :D.
~~KingLoneCat