Gah! I decided to make a GUI thats purposly annoying at the begginging. Help??? [Solved it]
Asked by
4 years ago Edited 4 years ago
So The GUI's positions are purposly centered in the middle of the screen as soon as the first person joins. However, when I play they are always on the side of the screen, here Is my code...
01 | for i,v in pairs (game.Players:GetChildren()) do |
02 | if v:IsA( "Player" ) then |
04 | v.PlayerGui.MainText.Frame.TextLabel.Text = "Hi!" |
06 | v.PlayerGui.MainText.Frame.TextLabel.Text = "Wait, Hold on..." |
08 | v.PlayerGui.MainText.Frame.TextLabel.Size = UDim 2. new { 0 , 1 , 0 , 1 } |
10 | v.PlayerGui.MainText.Frame.TextLabel.Position = UDim 2. new { . 5 , 0 , . 5 , 0 } |
Note: This only after the Size and Position are executed by the script