01 | while true do |
02 | script.Parent.BackgroundTransparency = 0 |
03 | script.Jeopardy:Play() |
04 | script.Parent.Text = "Loading" |
05 | script.Parent.Loading:TweenSize(UDim 2. new( 0.05 , 0 , 0 , 0 ), "Back" , 5 ) |
06 | wait( 5 ) |
07 | script.Parent.Text = "" |
08 | script.Jeopardy:Stop() |
09 | wait( 0.1 ) |
10 | script.Parent.BackgroundTransparency = 0.1 |
11 | wait( 0.2 ) |
12 | script.Parent.BackgroundTransparency = 0.2 |
13 | wait( 0.2 ) |
14 | script.Parent.BackgroundTransparency = 0.3 |
15 | wait( 0.2 ) |
Error: Unable to cast string to token
You must be using a LocalScript to tween an object (If you are not), You also forgot your EasingDirection just after the endSize
Example:
01 | while true do |
02 | script.Parent.BackgroundTransparency = 0 |
03 | script.Jeopardy:Play() |
04 | script.Parent.Text = "Loading" |
05 | script.Parent.Loading:TweenSize(UDim 2. new( 0.05 , 0 , 0 , 0 ), "Out" , "Back" , 5 ) |
06 | wait( 5 ) |
07 | script.Parent.Text = "" |
08 | script.Jeopardy:Stop() |
09 | wait( 0.1 ) |
10 | for i = 0 , 1 ,. 1 do |
11 | script.Parent.BackgroundTransparency = i |
12 | wait( 0.2 ) |
13 | end |
14 | wait( 5 ) |
15 | end |