Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Unable to cast string to token?

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

✓ Accepted answer

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)

1 comment

0

Thanks That Was How I Exactly Did It ;)

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.

1 comment

0

No need, read my edit on my question

This discussion is preserved as it was. New answers, comments, and votes are closed.