Answered by
6 years ago Edited 6 years ago
First error: You're using the StarterGui
instead of the PlayerGui
. You should read over this:
https://wiki.roblox.com/index.php?title=Player_vs._Starter_GUIs
Second of all, you are not closing your UDim2.new() properly on your tween, and you're setting your arguments wrong. Also, you should compact everything together when you can.
01 | TeleportGui = game:GetService( "Players" ).LocalPlayer:WaitForChild( "TeleportGui" ) |
02 | Frame = TeleportGui:WaitForChild( 'Frame' ) |
03 | ImageLabel = Frame:WaitForChild( 'ImageLabel' ) |
04 | ContentProv = game:GetService( "ContentProvider" ) |
05 | TP = game:GetService( "TeleportService" ) |
08 | if TP.LocalPlayerArrivedFromTeleport then |
10 | ImageLabel.Rotation = ImageLabel.Rotation + 1 |
13 | ContentProv.RequestQueueSize = = 0 |
14 | Frame:TweenPosition(UDim 2. new( 100 , 100 , 100 , 100 ), 'Out' , 'Linear' , 9 ) |
You were also missing an EasingDirection. Here's a useful link on how to tween:
https://www.robloxdev.com/api-reference/function/GuiObject/TweenPosition
Also note, that UDim2.new(100,100,100,100)
is way off the screen. If that's what you want, keep it that way.
I wish you luck! Please accept my answer to let me know if it helped you, and leave me a comment if you are confused with anything or if it didn't work.