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 comment

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