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?
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.
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