Custom cursor only appears in Roblox Studio test

Hello, I’ve added a custom cursor which only appears when I playtest the game in Studio:

but in Roblox there’s a default click cursor

code:

local Player = game.Players.LocalPlayer
local Mouse = Player:GetMouse()

Mouse.Icon = "rbxassetid://6872579222"

How can I fix this?
Thanks in advance

1 Like

This may help

Mouse.Cursor = Enum.MouseCursor.None
Mouse.IconEnabled = true

Nope, same issue unfortunately

Well that was odd. It must have been your picture.
Tested this, looks just like yours, works in game.

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

Mouse.Icon = "rbxassetid://5992580992" --a different picture that looks like yours

I looked at a different fix but idk, seems a bit hacky. Not something I would be willing to do.
How To Get A Custom Cursor On Roblox

Good thing this works this way :rofl:

Yeah I have seen this bug. In Shindo Life they made a Gui picture that follows the mouse and they made the actual mouse invincible. You can try to do that I hope that I helped you :smile:

1 Like

Seems to work with your code! Many thanks

1 Like