Custom mouse cursor not working

Setting the mouse cursor to an image just dosent work. All of the videos ive seen and posts ive read give me what is essentially the code below. I dont know what the problem is and if it is important the local script im using is located in starter player scripts.

local Players = game:GetService("Players")

local mouse = Players.LocalPlayer:GetMouse()
mouse.Icon = "http://www.roblox.com/asset?id=163023520"

Official roblox code for example

local Players = game:GetService("Players")

local mouse = Players.LocalPlayer:GetMouse()
mouse.Icon = "http://www.roblox.com/asset?id=163023520"
1 Like

is there anything above the code?
the code itself looks fine to me, I just tested it and it worked normally

there is nothing above the code

is this done on something like a baseplate, its possible there may be something overriding the cursor

seems like i posted the same code twice by mistake
This is the code I was using

local Players = game:GetService("Players")

local mouse = Players.LocalPlayer:GetMouse()
mouse.Icon = "http://www.roblox.com/asset?id=4727564979"
1 Like

what do you mean by it being done on the baseplate

try this instead:

local Players = game:GetService("Players")

local mouse = Players.LocalPlayer:GetMouse()
mouse.Icon = "rbxassetid://4727564972"
2 Likes

This one worked. Is there anything you changed other than the asset ID

I changed http://www.roblox.com/asset?id (which is outdated) to rbxassetid://

what about the asset IDs? when testing out other image asset ids using the same code they dont work.
Edit: It works if i just copy the texture id instead of the asset id

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.