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

Unable to cast to dictionary?

Asked by 3 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 = TweenInfo.new(5,Enum.EasingStyle.Quart,Enum.EasingDirection.In,1,false)

local Point = Vector3.new(-136.302, 543.42, -138.172)

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

1 answer

Log in to vote
1
Answered by 3 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})
0
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 — 3y
Ad

Answer this question