Scaling a frame from the centre

For the intro in my game I want to have the title fade in and a line to scale from underneath it (I have already done that). But the problem is the line scales only to the right, when I want it to scale from the middle.

Here is the problem:
https://i.gyazo.com/a6ba0f6f025705ad6ee318d0ba3058a6.mp4

local TS = game:GetService("TweenService")
local Tween = TS:Create(script.Parent, TweenInfo.new(5), {Size = script.Parent.Parent.EndLineSize.Size})
wait(5)
Tween:Play()

I am a beginner so please try and go easy on me :slightly_smiling_face:

You could set the anchor point to (0.5,0,0,0). Then changing the size will cause it to move outwards in both directions.

2 Likes