0

# Unable to cast string to token?

Edited 5 days ago

Hello, I am making this script for my Flight Detail Gui Basically when you click a button it pops up a GUI but for some reason on my output there is an error saying, " Unable to cast string to the token "

This is my main code:

FlightDetails:TweenPosition(UDim2.new(0.015, 0, 0.1, 0), "0ut", "Quad", 1, false)



EDIT: I actually put a 0 in the " Out " Code so no need to fix my question :-)

0

Here's how you should do it:

FlightDetails:TweenPosition(UDim2.new(0.015, 0, 0.1, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quad, 1, false)

0
Thanks That Was How I Exactly Did It ;) Brioche_Noodle 7 — 1d
0

Uhh? I think your are doing it wrong.

Here's an example:

script.Parent:TweenPosition(UDim2.new(0, 0, 0, 0, EasingStyle, EasingDirection, Time, Override, Callback))


If you don't understand go here:

GuiObject:TweenPosition()

I hope it works now.

0
No need, read my edit on my question Brioche_Noodle 7 — 1d