Mouse icon not showing up in game

Hey there. I don’t really have much code to show, really just

local plr = game.Players.LocalPlayer
local mouse = plr:GetMouse()
mouse.Icon = "rbxasset://..."

Although it shows up in studio, it doesn’t in the actual game. Can anyone help out? Maybe some adjustments I need to make with the icon image I uploaded?

You must use

"rbxassetid://decal_id_here"
1 Like

Yea, my id is in there. I just made that piece of code up, but that’s really all the script had

I’m confused, what do you mean? It still not working?

Yea. So I put my mouse icon as an image I uploaded recently. When I load into studio, the icon shows up. When I load it in game, the icon doesn’t show.

Could you send me the decal id?

Here’s the id: 9755740953

(more text so i can send the message)

So, try to publish the decal in the same place as the game owner (group or user)

Also, execute this code on command bar for the correct id:

print('The correct id is:', string.split(game.InsertService:LoadAsset(original_decal_id_here).Decal.Texture, 'id=')[2])

And use the correct id in the code:

if not game:IsLoaded() then
	game.Loaded:Wait()
end

local plr = game.Players.LocalPlayer
local Mouse = plr:GetMouse()
Mouse.Icon = 'rbxassetid://correct_id_here'

Hi, just add a timeout (5 or more is efficient).