Mouse cursor not working in game

I have a custom mouse cursor that works when playing in studio but not the real game?

1 Like

Could be many reasons. Make sure you have Published the game otherwise this will only run in studio. And just make sure your custom cursor id is valid. And, here is the script for it just incase you have written it wrong:

LocalScript in StarterPlayerScripts:

local Players = game:GetService("Players")

local Player = Players.LocalPlayer

local Mouse = Player:GetMouse()

Mouse.Icon = "rbxassetid://" -- add your custom mouse ID in here
1 Like

hmm, didn’t seem to work unsure as of why?

1 Like

I’m having the same problem, in studio the mouse icon loads but in the real game it doesn’t and it is just the default cursor. I have tried a different image and it still doesn’t work…

1 Like

I have the same issue. Not sure if its a studio bug.