Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Why Is My Frame Not Tweening Correctly?

Asked by 3 years ago

Greetings! I noticed an issue, for some reason my Frame won’t tween correctly, instead it tweens to 0,0,0 rather than what I need it to.

Here is a little clip of what’s going on: https://gyazo.com/6b59982823e8aeccb7cb668f914a90e9

script snippet:

    if isCookingIngredients.Value == true then
        print("True")
                local Tween = Cooker.BaseCooker.Meat.MeatGui.Scaler:TweenSize(
                    UDim2.new({0.8, 0},{1, 0}),
                    Enum.EasingDirection.Out,
                    Enum.EasingStyle.Quad,
                    10,
                    false

                )

        local Tween = Cooker.BaseCooker.Meat1.MeatGui.Scaler:TweenSize(
            UDim2.new({0.8, 0},{1, 0}),
            Enum.EasingDirection.Out,
            Enum.EasingStyle.Quad,
            10,
            false

        )

        local Tween = Cooker.BaseCooker.Meat2.MeatGui.Scaler:TweenSize(
            UDim2.new({0.8, 0},{1, 0}),
            Enum.EasingDirection.Out,
            Enum.EasingStyle.Quad,
            10,
            false
        )
        print("Tweening")
    end

Help is greatly appreciated!

1 answer

Log in to vote
1
Answered by 3 years ago
Edited 3 years ago

UDim2.new({0.8, 0},{1, 0})

Get rid of the curly brackets. It doesn’t work the same with curly brackets

Also this is legit a copy from another post on the DevForum. https://devforum.roblox.com/t/frame-not-tweening-correctly/777479/

0
THANK YOU SO MUCH FOR HELPING AGAIN!!!! I didn't know Curley Brackets could affect it that much, Tysm. Aiden_12114 79 — 3y
Ad

Answer this question