Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why is my mouse icon changing to default?

Hello,

I am making my own custom mouse icon. It works properly but when I move my character or move my mouse the icon changes to the roblox default.

Here is my very simple script.

plr = game.Players.LocalPlayer
mouse = plr:GetMouse()
mouse.Icon = "http://www.roblox.com/asset?id=4931599422"

Thanks

2 comments

0

Just add a while true do lol.

0

There is no errors in your code, however, make sure that the script is a LocalScript and is in StarterGUI.

1 answer

✓ Accepted answer

Hi there. Your code looks good. Make sure to upload your image as an image, and not a decal. For some reason, when you set it as an decal, it doesn't work

Also, you can try using RunService.RenderStepped and change the icon progressively if that did not work. There is also an alternative with mouse.Move:Connect(function()) which basically fire every heartbeat the mouse moves.

This discussion is preserved as it was. New answers, comments, and votes are closed.