Mouse Icon Isn't changing hover UI button

mhrew When I try to hover the GUI button its suppose to change the mouse icon
Its doesn’t seem to do that? Is this like a security thing whats the fix?

script.Parent.MouseEnter:Connect(function()
	
	script.Parent.Image = "http://www.roblox.com/asset/?id=7208626630"
		mouse.Icon =  "http://www.roblox.com/asset/?id=7208390524"
		

end)```

I got this problem but in ClickDetectors. I just fixed it changing the mouse icon constantly (Idk if this is the best method to fix that)

Example

game:GetService("RunService").RenderStepped:Connect(function()

Mouse.Icon = "rbxassetid://Id"

end)

And other thing, you can change the image when the mouse is in the ImageLabel/ImageButton. With the property HoverImage

It seems to be a roblox security protection, there’s really no way expect overlaying a part I think with a click detector, is the only way to prevent UI scams I think but seems roblox takes precautions

did you define what mouse is?
try doing this:

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

    script.Parent.MouseEnter:Connect(function()
       script.Parent.Image = -- image
       mouse.Icon = -- image
    end)

then you might want to do:

script.Parent.MouseLeave:Connect(function()
   script.Parent.Image = -- image
   mouse.Icon = -- image
end)