how to make button like this when hover?
2 Likes
local ButtonGUI = script.Parent -- Or wherever your button is.
ButtonGUI.MouseEnter:Connect(function()
ButtonGUI.Size = ButtonGUI.Size + UDim2.new(0, 5, 0, 5)
end)
ButtonGUI.MouseLeave:Connect(function()
ButtonGUI.Size = ButtonGUI.Size - UDim2.new(0, 5, 0, 5)
end)
3 Likes
You can call a function when your mouse enters in the button using MouseEnter as @RepValor said.
1 Like