Changing mouse.Icon is not working

this works:

local player = game.Players.LocalPlayer
local mouse = player:GetMouse()

mouse.Icon = "http://www.roblox.com/asset/?id=5923963876"

this doesnt work:

local player = game.Players.LocalPlayer
local mouse = player:GetMouse()

mouse.Icon = "http://www.roblox.com/asset/?id=10351875581"

i dont know why, im just changing the number and both assets are valid

The reason is because the first icon is a decal image, and the second is only a decal. Roblox is not very transparent on the difference, but only the image id can be used for things like mouse icons and plugin button images. The ID that you are looking for is 10351875563, which can be found through web plugins (such as BTRoblox) or by running the following from the command bar:

local InsertService = game:GetService("InsertService")
local MarketplaceService = game:GetService("MarketplaceService")
local DecalId = 123 -- Decal ID goes here

local function ImageIdFromDecal(DecalId)
    local Decal = InsertService:LoadAsset(DecalId):FindFirstChildWhichIsA("Decal")
    return Decal.Texture
end

print(ImageIdFromDecal(DecalId)) -- Image ID will be in the output
1 Like