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 4 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:

01if isCookingIngredients.Value == true then
02    print("True")
03            local Tween = Cooker.BaseCooker.Meat.MeatGui.Scaler:TweenSize(
04                UDim2.new({0.8, 0},{1, 0}),
05                Enum.EasingDirection.Out,
06                Enum.EasingStyle.Quad,
07                10,
08                false
09 
10            )
11 
12    local Tween = Cooker.BaseCooker.Meat1.MeatGui.Scaler:TweenSize(
13        UDim2.new({0.8, 0},{1, 0}),
14        Enum.EasingDirection.Out,
15        Enum.EasingStyle.Quad,
View all 29 lines...

Help is greatly appreciated!

1 answer

Log in to vote
1
Answered by 4 years ago
Edited 4 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 — 4y
Ad

Answer this question