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

Unable to cast to dictionary?

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

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})

1 comment

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

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