mouse.Icon Wont change to my image

You can write your topic however you want, but you need to answer these questions:

I’m trying to change the player’s cursor to an image but it won’t work. I’ve tried using other people’s images it works but it doesn’t work with my image.

I’ve seen many people struggling with mouse.icon but none of the solutions I’ve seen sofar has worked.

local rms = game.ReplicatedStorage:WaitForChild("RMS")
local PGUI = 	game.Players.LocalPlayer.PlayerGui
local mouse = game.Players.LocalPlayer:GetMouse()
local cursor
local AppHandlerModule = require(game.ReplicatedStorage:WaitForChild("AppHandler"))
cursor = "http://www.roblox.com/asset/?id=14055126701"



mouse.Button1Down:Connect(function()
end)
mouse.Move:Connect(function()
	local UIOBJS = PGUI:GetGuiObjectsAtPosition(mouse.X, mouse.Y)
	-- sets mouse cur
	while true do
		wait(0.05)
		mouse.Icon = cursor
	end
end)
1 Like

Try this:

local uis = game:GetService('UserInputService')
local rms = game.ReplicatedStorage:WaitForChild("RMS")
local PGUI = 	game.Players.LocalPlayer:WaitForChild("PlayerGui")
local mouse = game.Players.LocalPlayer:GetMouse()
local AppHandlerModule = require(game.ReplicatedStorage:WaitForChild("AppHandler"))
local cursor = "http://www.roblox.com/asset/?id=14055126701"

uis.MouseIcon = cursor

mouse.Button1Down:Connect(function()
end)
mouse.Move:Connect(function()
	local UIOBJS = PGUI:GetGuiObjectsAtPosition(mouse.X, mouse.Y)
end)
1 Like

Nope, still won’t work. I’m not sure why at all. Earlier today it was working perfectly fine but now it just doesn’t work.

try testing in roblox instead of studio

I did but it still didn’t work. : (

That’s strange. I’m not sure, hopefully someone else figures it out.

1 Like

I got it working by putting the ID into an image label and copying the ID from there. I guess decal IDs are different than image label IDs.

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