Not sure why I'm getting this error, " Unable to cast token to float"

I’m trying to simply tween a text label, and I’m getting this error: “Unable to cast token to float”.

Here's my script: script.Parent:TweenPosition({0, 0},{0.341, 0}, Enum.EasingDirection.InOut, Enum.EasingStyle.Bounce, 5, false, nil)

So, if you could please help that would be great. Thanks!

Please remove the brackets, that’s all.
Make it

UDim2.new(0,0,0,0)

false, nil

This is unnecessary since these are the default values if they aren’t included.

3 Likes

Thanks so much! I would have probably never would have figured that out!