Is it possible to make a part tween to a certain CFrame position?

Is it possible to turn something like this into a smooth tween instead, I’ve been trying to figure a way for it to work without it looking awful.

--[[Part instantly goes to position, 
trying to get part to smoothly move to position.]]
TestPart4 = CFrame.new(Vector3.new(0, 0, 0))
local TweenService = game:GetService("TweenService")
local part = Instance.new("Part", workspace) -- Change to the part you want to tween


local info = TweenInfo.new(
	1,                         -- Time it will take
	Enum.EasingStyle.Sine,     -- Easing style
	Enum.EasingDirection.In,   -- Easing direction
	0,                         -- Repeat count
	false,                     -- Reverses
	0                          -- Delay
)

local goals = {CFrame = CFrame.new(Vector3.new(0, 0, 0))}

local tween = TweenService:Create(part, info, goals)
tween:Play()
1 Like