local TS = game:GetService("TweenService")
-- You don't need lerp or RunService for tweening
local tInfo = TweenInfo.new(0.15, Enum.EasingStyle.Quint, Enum.EasingDirection.Out)
local Button = script.Parent
Button.MouseEnter:Connect(function()
TS:Create(Button, tInfo, {["Size"] = Button:GetAttribute("HoveringSize")}):Play()
end)
Button.MouseLeave:Connect(function()
TS:Create(Button, tInfo, {["Size"] = Button:GetAttribute("NormalSize")}):Play()
end)
local TS = game:GetService("TweenService")
local tInfo = TweenInfo.new(0.15, Enum.EasingStyle.Quint, Enum.EasingDirection.Out)
local Holder = --Button holder
for _, Button in Holder:GetChildren() do -- Loop through all of the buttons in 1 script instead of adding scripts to each one
if not Button:IsA("GuiButton") then continue end
Button.MouseEnter:Connect(function()
TS:Create(Button, tInfo, {["Size"] = Holder:GetAttribute("HoveringButtonSize")}):Play()
end)
Button.MouseLeave:Connect(function()
TS:Create(Button, tInfo, {["Size"] = Holder:GetAttribute("NormalButtonSize")}):Play()
end)
end