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

Cursor help ?

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

1 answer

Log in to vote
1
Answered by 8 years ago

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

0
I had this idea, If there was no ROBLOX function. Thanks for typing it up anyway, ConnorVIII 448 — 8y
0
No problem. KingLoneCat 2642 — 8y
Ad

Answer this question