Ad
Log in to vote
0

Unable to cast string to token?

Asked by 5 days ago
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)

Please help me with this code :(

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

2 answers

Log in to vote
0
Answered by 5 days ago

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
Ad
Log in to vote
0
Answered by 5 days ago

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

Answer this question