TweenService - Vector3 Error

Hi,
I’m trying to tween a sliding door rn and there is a small problem:

Because of the door’s location is moving during the game, I cant set a specific CFrame Value to the goal location and I need to add 4 studs to the x coordinate of the current postion:

local MovePart1End = {CFrame = MovePart1.Position + Vector3.new(8.00, 0.00, 0.00)}

It gives me this error:

TweenService:Create property named ‘CFrame’ cannot be tweened due to type mismatch (property is a ‘CoordinateFrame’, but given type is ‘Vector3’)

Thanks for helping!

Well, I did syntax error:

I just forgot CFrame.new():

local MovePart1Start = {CFrame = CFrame.new(MovePart1.Position * Vector3.new(8.00, 0.00, 0.00))}
1 Like