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

Unable to cast string to token?

Asked by 3 years ago
Edited 3 years 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 3 years 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 45 — 3y
Ad
Log in to vote
0
Answered by 3 years 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 45 — 3y

Answer this question