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

Why is my mouse icon changing to default?

Asked by
uhi_o 417 Moderation Voter
4 years ago

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

0
Just add a while true do lol. mixgingengerina10 223 — 4y
0
There is no errors in your code, however, make sure that the script is a LocalScript and is in StarterGUI. Dan_PanMan 227 — 4y

1 answer

Log in to vote
1
Answered by 3 years ago

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.

Ad

Answer this question