It's a simple script but I can't get it to wait for the player to load up before it starts doing the tween.
1 | local frame = script.Parent |
2 |
3 | frame:TweenPosition(UDim 2. new(. 5 , 0 ,. 55 , 0 ), 'Out' , 'Bounce' , 10 ) |
1 | local player = game.Players.LocalPlayer |
2 | if player and player.PlaeyrGui and player.Character then |
3 | local frame = script.Parent |
4 |
5 | frame:TweenPosition(UDim 2. new(. 5 , 0 ,. 55 , 0 ), 'Out' , 'Bounce' , 10 ) |
6 | end |
This would be better if you wanted it to wait for everything to be in.
1 | repeat wait() until game.Players.LocalPlayer.Character |
2 |
3 | local frame = script.Parent |
4 |
5 | frame:TweenPosition(UDim 2. new(. 5 , 0 ,. 55 , 0 ), 'Out' , 'Bounce' , 10 ) |
The first line repeatedly waits until the Player is loaded and then executes the rest below.