Mouse icon changes back?

I have a local script inside starter player scripts which changes the mouse. Although it works for a second after you join it goes back to normal after not very long. Here is the script:

local mouse = game:GetService('Players').LocalPlayer:GetMouse()
local icon_id = 'rbxassetid://12325392941'

mouse.Icon = icon_id

mouse:GetPropertyChangedSignal('Icon'):Connect(function()
	if mouse.Icon ~= icon_id  then
		mouse.Icon = icon_id 
	end
end)
3 Likes

how long does it take for it to suddenly change back? It seems to be working fine for me.

edit: I’ve been in-game for around 10 minutes and it hasn’t changed, something might be happening that is also changing it.

I have the same problem, I change the ID and the icon doesn’t actually change.

are you using the source id or whatever it’s called? I’m pretty sure that Roblox changes the ID from what is shown in the browser. But using a script won’t make the change for you.

i tried using it and it worked normally?

1 Like

I tried both. http and the rbxassetid.

1 Like

yeah, but roblox has at two ids for images, unless that’s what you’re talking about.

A second or two. Is yours in starter player scripts?

There is no other script influencing this.

It’s inside StarterPlayerScripts, I have nothing else that could affect the script in any way either. Add some print statements maybe and see if it actually changes anything?

it works when I put a 5 second delay, but I’m not sure if this will be good for a laggy device.

I don’t know what could be wrong with the script to be honest? maybe it’s a loading issue or something.

Maybe try putting the script inside ReplicatedFirst?

Could you show a video of your mouse ingame?

what would the video show? it just changed back to the original one after a few seconds

It helps to see it, for me at least.

well my computer has a bit of a glitch right now where my computer restarts when I play a video so unfortunately I can’t.