CFrame is not a valid member of Vector3

I’m trying to make a “Smooth” Shiftlock using tween service, and I got this error.
“CFrame is not a valid member of Vector3”
What does it mean and How do I fix it?

image

You are trying to get the CFrame (position and rotation) of a value that is a Vector3 (position), if you wanted to do this the way you have it set up, just remove .CFrame

That worked, but now i’m getting a error, “Unable to cast value to object”, on line 29. Does that have to do with the BaseCFrame?


This is the actual error, you’re receiving:

For some reason it got replaced by Unable to cast value to Object

do CFrame.new(Vector3) if you want to remove the Rotation.

1 Like

Actually I just realized, your first argument for TweenService:Create() is a CFrame class

You can’t do that, it has to be an Instance or in this case → CFrame ValueBase object

1 Like

Thank you so much, you don’t know how long I’ve been trying to do this

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.