Unable to cast array to TweenInfo?

Trying to make it so, when the player presses a button. The camera moves to the position of another part.
I’m using tweenService to do this, but it ain’t working.

Here is the script

customizeButton.MouseButton1Click:connect(function()
     local customizationTween = { 1, Enum.EasingStyle.Linear, Enum.EasingDirection.In}
     local Goal = { CFrame = CFrame.new(game.Workspace.Cameras.cam.Position) }
     
     tweenService:Create( game.Workspace.Cameras.customizeCamera, customizationTween, Goal ):Play()


 
 
end)

TweenInfo takes the TweenInfo data type, not arrays.

You would have to do:

local customizationTween = TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.In)
7 Likes