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

How to stop buttons from changing the mouse icon after being clicked?

Asked by
aiuis 85
6 years ago

Code that I change the mouse with when player joins: game.Players.LocalPlayer:GetMouse().Icon='rbxassetid://905682875'

Example: https://gyazo.com/b081a702b38a5f25863ccd0f148e5cc7

Properties: https://gyazo.com/1ee994c97aabe9f54aea2c548059564c

0
Try checking and changing the mouse again right after the player clicked on an object. thesit123 509 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

ImageButtons and TextButtons behave strangely sometimes (in this case, they're exhibiting having Active as true despite what you've set them to be -- the wiki even makes note of this here: http://wiki.roblox.com/index.php?title=API:Class/GuiObject/Active). You can equivalently use ImageLabels and TextLabels instead, and they won't have this strange behaviour.

Ad

Answer this question