#Tween Bug

1 messages · Page 1 of 1 (latest)

patent elbow
#

https://streamable.com/j1ug1e

local openSize = UDim2.new(0.52, 0, 0.52, 0)
local openTween = TweenInfo.new(0.4, Enum.EasingStyle.Back, Enum.EasingDirection.Out)
local closeTween = TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.In)
local frameCooldown = false

OpenRebirth.Activated:Connect(function()
    if frameCooldown then return end
    if RebirthFrame.Visible then
        local closeAnimTween = TweenService:Create(RebirthFrame, closeTween, {Size = UDim2.new(0, 0, 0, 0)})
        closeAnimTween:Play()
        closeAnimTween.Completed:Wait()
        RebirthFrame.Visible = false
    else
        RebirthFrame.Visible = true
        local openAnimTween = TweenService:Create(RebirthFrame, openTween, {Size = openSize})
        openAnimTween:Play()
        openAnimTween.Completed:Wait()
    end
    frameCooldown = false
end)

In the clip everything tweens away but the things in RequirementFrame (with UiListLayout) does not tween. If anyone know how to fix that please tell me.

Watch "2025-09-06 20-24-12" on Streamable.

▶ Play video
#

The close button also has the same issue.

CloseShop.Activated:Connect(function()
    if frameCooldown then return end
    frameCooldown = true
    local closeAnimTween = TweenService:Create(ShopFrame, closeTween, {Size = UDim2.new(0, 0, 0, 0)})
    closeAnimTween:Play()
    closeAnimTween.Completed:Wait()
    ShopFrame.Visible = false
    frameCooldown = false
end)
wooden haven
#

The tween is only going to work on the instance you're tweening

If you want that text to not flow off screen like that, you'll need to make sure your label's size is using scale, not offset

patent elbow
wooden haven
#

but if you just make the text label's size a scale instead of offset, it'll grow and shrink with the frame

patent elbow
#

{x scale, x offset}, {y scale, y offset)?

wooden haven
patent elbow
wooden haven