Basically when I tween a button in a list layout the button tweens, but in some cases the sizes are just completely inconsistent once you mess around with them. Here is an image of what it looks like:
here is code:
for i, v in pairs(SideBarFolder:GetDescendants()) do
if v:IsA("TextButton") then
local regularSize = v.Size
local overSized = regularSize.Y.Scale * 1.2
v.MouseEnter:Connect(function()
if v.Size.Y.Scale >= overSized then
TweenHandler:MouseClickUp(v, regularSize.X.Scale, regularSize.Y.Scale)
end
local Mouse = plr:GetMouse()
TweenHandler:OnHoverShow(v:FindFirstChild("Indentifier").Value, Main, Mouse)
end)
v.MouseLeave:Connect(function()
TweenHandler:onHoverLeave(Main)
end)
v.MouseButton1Down:Connect(function()
TweenHandler:MouseClickDown(v, v.Size.X.Scale, v.Size.Y.Scale)
end)
v.MouseButton1Up:Connect(function()
TweenHandler:MouseClickUp(v, v.Size.X.Scale, v.Size.Y.Scale)
end)
end
end