2JJ1
|
  |
| Joined: 15 Mar 2012 |
| Total Posts: 1571 |
|
|
| 04 Aug 2015 10:30 AM |
I'm not too good with coming up with a formula in math. Can someone think of one to get a frame into the center of the screen?
x = script.Parent.Position.X.Scale y = script.Parent.Position.Y.Scale
centerX = --Formula here centerY = --Formula here |
|
|
| Report Abuse |
|
|
Darkenus
|
  |
| Joined: 17 Jul 2014 |
| Total Posts: 1997 |
|
|
| 04 Aug 2015 10:32 AM |
| ((.5,(half of the size in x)),(.5,(half the size in y)) |
|
|
| Report Abuse |
|
|
rayk999
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 4705 |
|
|
| 04 Aug 2015 10:33 AM |
If you sized the gui with Offset:
{.5,-xOffset/2} {.5, -yOffset/2}
if you sized the gui with Scale:
{(1-xScale)/2,0} {(1-yScale)/2,0} |
|
|
| Report Abuse |
|
|