Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to change Mouse Hover Icon?

I am using a Custom Mouse but when I hover my mouse onto a TextButton, it defaults back to normal. I want to know how to change it without changing the .png file in the games files. This is my script that I'm using.

local mouse = game.Players.LocalPlayer:GetMouse()
mouse.Icon = 'rbxassetid://6701678581'

1 answer

Then put a LocalScript into the Button and write the same, but just into a Hover event

local b = script.Parent

b.MouseEnter:Connect(function()

        local mouse = game.Players.LocalPlayer:GetMouse()
	mouse.Icon = 'rbxassetid://6701678581'

end)

b.MouseLeave:Connect(function()

        local mouse = game.Players.LocalPlayer:GetMouse()
	mouse.Icon = 'rbxassetid://6701678581'

end)

I think that’s should be okay ????

1 comment

1

Roblox temporarily disables that while hovering a button so that doesn't work

This discussion is preserved as it was. New answers, comments, and votes are closed.