How to stop mouse from doing click image while hovering over a button?

I know this might sound complicated, but I will try to explain in a way you will understand.

So I want to know if it is possible to get rid of the animation where the mouse is clicking something when clicking or hovering over a button, if it is possible then how would I do that?

Here is a video showing me hover over a textbutton, how would i get rid of the mouse image and have the mouse image be the same whenever you hover over a textbutton basically?

robloxapp-20230304-1814084.wmv (271.0 KB)

Thank you.

Are you trying to change the mouse icon or the textbutton hover?

Have you saw the video yet? I want the mouse to have the same image whenever they click or hover over a textbutton. I don’t want the mouse to have the clicking image every time they hover or click on a button.

Basically they don’t want the mouseIcon to change when they hover over a clickable object.

in other words…

They don’t want this thing showing up:

tell me if I’m wrong

1 Like

I can’t exactly watch the video because it’s not embedding. But I presume you’re looking for this?

local Mouse = game:GetService("Players").LocalPlayer:GetMouse()
local DefIcon = Mouse.Icon
local UIS = game:GetService("UserInputService")
local FrameThatHasAllTextButtons = script.Parent
for _,v:TextButton in FrameThatHasAllTextButtons:GetChlidren() do --
	if v:IsA("TextButton") then
		v.MouseEnter:Connect(function()
            -- disables mouse icon from comment below
			--UIS.MouseEnabled = false
			Mouse.Icon = "rbxassetid://ID"
		end)
		v.MouseLeave:Connect(function()
			-- enables  mouse icon from comment below
			--UIS.MouseEnabled = true
			Mouse.Icon = "rbxassetid://ID"
		end)
	end
end

this works, thank you very much

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