CFrame error with tweening with Unions

  1. What do you want to achieve? That a union tweens to another union (they look the same)

  2. What is the issue? I get this error:

  3. What solutions have you tried so far? I’ve tried looking and I even changed the CFrame with position (Union tweening problem with CFrame) but that didn’t work.

This is not the whole script

enterDoor.Parts.Touched:Connect(function(hit)	
			if hit.Parent:IsA("Tool") and hit.Parent.Name == "Keycard" then
				if not isTouched then 
					isTouched = true 
					TweenService:Create(enterDoor, doorTweenInfo, {CFrame = enterDoor.OpenRightDoor.CFrame}):Play()
end)

Can someone help me?

I think you are trying to tween a model, but sadly you can tween parts only.
There other methods you can use to tween the whole model tho.

It is a union (i don’t know if that is a model tween). but what are the other ways? I couldn’t find any.

EDIT: You can ofc just send a link to the wiki

The error means that the CFrame property doesn’t exists, and Unions do have CFrame property.

1 Like