How to change the mouse Icon?

I have a problem changing the Icon of the player’s mouse

My code:

local Players = game:GetService("Players")
local Mouse = Players.LocalPlayer:GetMouse()

Mouse.Icon = "http://www.roblox.com/asset/?id=6227033418"

The script is already in a local script and is in the StarterPlayerScripts but isn’t working.

Pls help me!

2 Likes

Make this a local script inside the starter gui.

3 Likes

It working for me!I put it as LocalScript and insert it in StarterCharacterScript,StarterPlayerScript,StarterGui and it seem fine.
s

1 Like

The mouse object is only defined in local scripts & as such can only be accessed from them.

2 Likes