Help with TweenService

Hello, I’m trying to move an object between two locations. The object is a group, and I welded the parts inside to a reference part. It says “Unable to cast to dictionary”. Here is the script:

local TweenService = game:GetService("TweenService")
local Info = TweenInfo.new(15, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, -1, true, 15)
local goal = {Vector3.new(1136.65, 34.65, -300.574)}

TweenService:Create(Map.Lift1:FindFirstChild("ReferencePart"), Info, goal)```

The object isn't anchored, but the reference part is
local goal = {Vector3.new(1136.65, 34.65, -300.574)}

Should be:

local goal = {Position = Vector3.new(1136.65, 34.65, -300.574)}
1 Like

Nothing is happening and theres no error in the output, I don’t know why

You have to play your tween with Play():

TweenService:Create(Map.Lift1:FindFirstChild("ReferencePart"), Info, goal):Play()
2 Likes

Yeah its working, but should I anchor the model that I welded to the reference part