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

How would I position a frame in the middle of another frame?

Asked by 4 years ago
local h = script.Parent.ome
local c = script.Parent.Comntrol

h.Position = UDim2.new(c.Position.X.Scale + c.Size.X.Scale/2, 0, c.Position.Y.Scale + c.Size.Y.Scale/2,0)

How would I position a frame in the middle of another frame, without parenting it to the frame? Code above does put it near the middle, but not in the middle.

1
Set the anchor point of the frame to : 0.5,0.5 and then change the position of the frame to: 0.5,0,0.5,0 DEVLogos 8 — 4y

Answer this question