I'm trying to change the mouse Icon from a icon I set at the beginning to a new one after a player hovers over a part with a Click Detector.

Script that changes cursor at the beginning: (This Works. Parent is StarterGui)

local mouse = game.Players.LocalPlayer:GetMouse()
mouse.Icon = "rbxassetid://3473282876"

Script that is supposed to change the cursor on the Hover: (This script's Parent is the Click Detector.)

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

workspace.test.ClickDetector.MouseHoverEnter:Connect(function(work)
	mouse.Icon = 'rbxassetid://3529783709'
end)

UPDATE Another important detail is that the second script works when I get rid of the first.