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

Unable to cast to dictionary?

Asked by 2 years ago

That's the error I'm getting with my tween here's the tweening code (LeftVan is a model)

local Tween = game:GetService("TweenService")

local Drive =,Enum.EasingStyle.Quart,Enum.EasingDirection.In,1,false)

local Point =, 543.42, -138.172)

local Tweened = Tween:Create(LeftVan,Drive,Point)

1 answer

Log in to vote
Answered by 2 years ago

The third argument third parameter of TweenService:Create() is a dictionary of properties to tween.

To fix this, you would replace Point inside the Create method with a dictionary like this.

local Tweened = Tween:Create(LeftVan,Drive,{Position = Point})
Ok since it's a model then it only has origin position, can you tell me how I would get that? It has a space in it and I've tried quotation marks SuperSM1 67 — 2y

Answer this question