of     1   

evolvedpikachu
#89330868Friday, February 15, 2013 9:35 PM GMT

What would the Position be for GUIs to be in the EXACT middle? I'm going to test out the LoadingGUI feature and I would like to know this.
BlueTaslem
#89331130Friday, February 15, 2013 9:38 PM GMT

UDim2.new(0.5, 0 , 0.5 , 0)
evolvedpikachu
#89331487Friday, February 15, 2013 9:41 PM GMT

Uh ok. It doesn't look like it's the middle in Roblox Studio but whatever.
BlueTaslem
#89331758Friday, February 15, 2013 9:44 PM GMT

Where does it look like it's at?
evolvedpikachu
#89332363Friday, February 15, 2013 9:49 PM GMT

Oh nvm I had to many windows at one time. It made it look like it was to the right. Sorry, you were right.
FreeToTake
#89341905Friday, February 15, 2013 11:09 PM GMT

no, it's not. x.Position = UDim2.new(.5, x.Size.X.Offset/2, .5, x.Size.Y.Offset/2) this is the exact center of the screen.
DataStore
#89341930Friday, February 15, 2013 11:09 PM GMT

@Blue, that would be the exact center for a GUI object that was 1x1. Would it not? Position = UDim2.new(0.5, -GUI.Size.X.Offset/2, 0.5, -GUI.Size.Y.Offset/2)
DataStore
#89342033Friday, February 15, 2013 11:10 PM GMT

Darn it, late post. Sorry.
evolvedpikachu
#89342444Friday, February 15, 2013 11:13 PM GMT

Now to figure out how to slap that into my Command Bar.
DataStore
#89343759Friday, February 15, 2013 11:26 PM GMT

You don't need to 'slap it' into the command bar... It's simple math. So for example if the size of my GUI was, {0,50}, {0,50} And you wanted it to be centered directly in the middle, it would become {0.5, -25}, {0.5, -25}
wolverine12
#89344730Friday, February 15, 2013 11:35 PM GMT

yes
DataStore
#89345042Friday, February 15, 2013 11:38 PM GMT

The position that is. Sorry, I was not clear on the second half of it. The position would become "{0.5, -25}, {0.5, -25}".
evolvedpikachu
#89355665Saturday, February 16, 2013 1:26 AM GMT

Ok, I'll be using that. Once ROBLOX actually lets us use our custom GUIs on LoadingGUI, lol.
DataStore
#89356289Saturday, February 16, 2013 1:33 AM GMT

They do... You just make the GUI in the StarterGui, and place it in the LoadingGui after you're done. There's issues with LocalScripts not executing at the moment though... (Remember to set AutomaticallyHide off so you can hide it yourself later)
evolvedpikachu
#89358131Saturday, February 16, 2013 1:51 AM GMT

Yes, but they put this weird Roblox Logo that pretty much takes up my whole loading time. Ima go check if they have some Method that tells when the Character completely loads so I can set AutomaticallyHide.
DataStore
#89358323Saturday, February 16, 2013 1:52 AM GMT

No... *Head Desk* The ROBLOX logo tweens away to show your GUI. If you toggle off "AutomaticallyHide" to begin with, your LoadingGui will be there until you call the hide method on the LoadingGui service (IN A LOCALSCRIPT).
evolvedpikachu
#89359880Saturday, February 16, 2013 2:07 AM GMT

*Face Palm* Oh, I was supposed to keep AutomaticallyHide on? Oops. I was also supposed to use LOCAL SCRIPTS? Durp. This is what a 12 year old gets for messing with new features.
DataStore
#89360128Saturday, February 16, 2013 2:09 AM GMT

http://wiki.roblox.com/index.php/LoadingGui It's under development and has some issues. It's advisable to keep AutomaticallyHide off since if it's toggled it'll automatically hide the GUI as soon as the character is loaded, regardless of if the tacky ROBLOX GUI has tweened away. Please note there's apparently some issues with LocalScripts running in LoadingGui.
evolvedpikachu
#89361924Saturday, February 16, 2013 2:25 AM GMT

*Title Fix* Ok, then I will call the Hide() Method at the amount of time it takes to load I guess. I will also have to find a way to make it appear when the Player starts loading, lol. I guess they will probably either have already have put that behind my back or it will be in some update.
HardMal
#146416997Saturday, September 20, 2014 10:25 AM GMT

Actually, the Middle of the Screen is {0.5,-170 , {0.5,-92}. Your Welcome.

    of     1