How do I tween a gui from both sides?

Replace the :TweenSize() with:

local tween = TweenService:Create(
 new,
 TweenInfo.new(0.8, Enum.EasingStyle.Sine, Enum.EasingDirection.In),
 {Size = Udim2.new(1, 0, 0.14, 0)}
 ):Play()

Enum is an error?
eeeeeeeeeeeeeeeeeeee

Oops forgot a comma, try now (I edited the reply)

“Unable to cast dictionary”
pretty sure it’s about the UDim2?
local tween = TweenService:Create(new.Size,TweenInfo.new(0.8, Enum.EasingStyle.Sine, Enum.EasingDirection.In),{UDim2.new(1, 0, 0.14, 0)}):Play()

You forgot to type in Size = here

Change line 36 for this:

TweenService:Create(new,TweenInfo.new(0.6),{BackgroundTransparency = 1}):Play()

Transparency is not a TextLabel property.

1 Like

But everytime it’s written like that it has an error.
local tween = TweenService:Create(new.Size,TweenInfo.new(0.8, Enum.EasingStyle.Sine, Enum.EasingDirection.In),{UDim2.new(1, 0, 0.14, 0)}):Play()
“Unable to cast dictionary”

@BawTheSeal says to use this:

TweenService:Create(new,TweenInfo.new(0.8,Enum.EasingStyle.Sine,Enum.EasingDirection.In),{Size = UDim2.fromScale(1,0.14)}):Play()
1 Like

ok, this works now, but it still tweens left to right.

You must replace this:

UDim2.fromScale(1,0.14)

For this:

UDim2.fromScale(-1,0.14)
1 Like

it just tweens right to left now, off the screen.

Explain what you want, I still don’t understand xd

1 Like

I want the textlabel to tween both sides at once.

Something like this?

1 Like

yea, but problem is i did what he said (set anchor point) which is what this guy also said above

but still it is not working.

any ideas?

Try setting the AnchorPoint as 0,0.5

1 Like

did not work. Not sure what will solve this lol

1 Like

Yes xD
This is what you want with the size?
robloxapp-20210123-1858586.wmv (99,1 KB)

1 Like

yea!
maybe it’s not working because of the uilistlayout or something…

solved it, problem was the UIListLayout constraint was setting the FillDirection to “Left”, which cancelled out the AnchorPoint’s effect.

1 Like