Mouse Icon Not loading properly

I’ve had this issue where I hover my mouse over a click detector it changes the icon and when it’s hovering not it changes it to the normal icon where it works in studio but not in-game.

I’ve re-uploaded the icons to try to get them to work (which did nothing), multiple re-formatting of the actual URL of the mouse icons (which still did nothing), and I suspected the new Roblox chat was causing the problems so I disabled the chat and still did nothing.

So as a final attempt, I asked a friend to upload the icons and no surprise they still failed to work in-game.
Hovering over a click detector

CD.MouseHoverEnter:Connect(function(hoveringPlayer)
	if hoveringPlayer == Player then
		hovering = true
	end
end)

CD.MouseHoverLeave:Connect(function(hoveringPlayer)
	if hoveringPlayer == Player then
		hovering = false
	end
end)

The changing of the mouse icon

RunService.RenderStepped:Connect(function()
	if hovering == true then
		Player:GetMouse().Icon = mouseHover
	else
		Player:GetMouse().Icon = mouseNormal
	end
end)
Mouse Icons and Roblox URLs

Normal Icon URL

Click IconURL

1 Like

Did you publish the game? If it works in studio I can’t see why it shoudn’t work out of studio.

I did publish the game, here’s the link if you wanna try yourself Untitled Elevator Game - Roblox

You can check the mouse.Target and see if its a click detector like this.
If this doesn’t work then check if you are using Images/normal file from the decal you uploaded.

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

local mouseHover = "rbxassetid://"
local mouseNormal = "rbxassetid://"

Player:GetMouse().Icon = mouseNormal

RunService.RenderStepped:Connect(function()
local Target = Mouse.Target	
if Target and Target:FindFirstChildOfClass("ClickDetector") then 
	
		Player:GetMouse().Icon = mouseHover
	
else
	
		Player:GetMouse().Icon = mouseNormal
	
	end
end)