I am scripting the position of a welcome gui that pops up when the player joins then is tweened to the center of the screen, but on mobile devices it goes of the screen. How do you find the position of the center of the viewport via script?
COMMUNITY QUESTION
How to place a GUI at the center of screen regardless of Viewport?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
Set the AnchorPoint to (0.5, 0.5), and the position to (0.5,0,0.5,0).
To repsectivly position a GUI in accordance to the dimensions of it's parent, use scaling.
Thanks, pls type an answer so I can mark as answered