Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Gui TweenPosition help??

Asked by 9 years ago

something went wrong in this help?

the output say unable to cast duble tokens?

18:53:00.664 - Unable to cast double to token

     player:WaitForChild("PlayerGui"):WaitForChild("ScreenGui"):WaitForChild("ImageLabel").Visible=true 
        wait(1)
             game.StarterGui.ScreenGui.ImageLabel:TweenPosition(0.5,-200,0,0)

1 answer

Log in to vote
2
Answered by 9 years ago

First argument for TweenPosition in GUIs should always be a UDim2Value which is what you were missing. Second argument "In" can be either "In" or "Out" which will vary how the GuiObject moves. Third argument varies the increments of how the position will change. Fourth (0.5) is the amount of time it takes to reach the designated position. EDIT: Sorry made a typo

player:WaitForChild("PlayerGui"):WaitForChild("ScreenGui"):WaitForChild("ImageLabel").Visible=true 
   wait(1)
        game.StarterGui.ScreenGui.ImageLabel:TweenPosition(UDim2.new(0.5,-200,0,0),"In","Sine",0.5)
0
ehh sine did not work??? amaperson299 5 — 9y
0
just finish off the UDim2.new that he starterd. He answered you properly, whenever ur tweening, u cant just put number values bcuz that would make invalid arguments. Add 2 more numbers to the Udim2 and close off the parentheses koolkid8099 705 — 9y
0
Is it going to work while still using StarterGui? I thought it had to be set to the ingame clone. Pyrondon 2089 — 9y
Ad

Answer this question