How can I change the player's mouse icon into a pointing hand?

I want to change the player’s mouse into a pointing hand, but it doesn’t work. I used the asset id from the documentation:


But the icon still doesn’t change, here’s my code:

script.Parent.MouseEnter:Connect(function()
	hovering = true
	oldIcon = game.Players.LocalPlayer:GetMouse().Icon
	game.Players.LocalPlayer:GetMouse().Icon = "rbxasset://SystemCursors/PointingHand"
end)
1 Like

You can only change the mouse cursor to a system image if you’re setting it from a PluginScript. In order to change it to a pointing hand, you would need to download the image, upload it, and get the ImageId.

script.Parent.MouseEnter:Connect(function()
	hovering = true
	oldIcon = game.Players.LocalPlayer:GetMouse().Icon
	game.Players.LocalPlayer:GetMouse().Icon = "rbxassetid://(imageid)"
end)
1 Like

I didn’t know that, thank you!

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