I have a Frame at the Top center of my screen and I want it to expand out on the X plane till it takes up the whole X plane at the top of my screen starting from the center and expanding out.
I have tried to make the GUI change position along with its size to keep it centered and make it look like it expanding out but I can't get the position math to keep with the size it always seems to get to long in positive direction.
I have also looked into anchor points but I can't seem to figure out how todo it with them.
local Frame = script Parent
local Percentage = NumValue.Value
Frame.Size = UDim2.new(Percentage,0,1,0)
local PosNum = --I can't figure out the math for this part to keep the frame in the same position so it looks like it explands out
Frame.Position = UDim2.new(PosNum,0,0,0)

1 comment
Assign Anchor-points.