How to CFrame a model?

  1. What do you want to achieve? Keep it simple and clear!

  2. What is the issue? Include screenshots / videos if possible!
    Снимок экрана 2022-10-05 122736

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

local istween = tweens:Create(script.Parent.Parent,info,{CFrame = script.Parent.Parent * CFrame.new(0,0,-5)}):Play()
3 Likes

You cannot change the CFrame of a model as it does not have one. Instead, make a primary part for the model and weld all of the model’s parts to that primary part and set the primary part’s CFrame. That will let you tween the whole model.

I would also like to note that script.Parent.Parent is not a CFrame value. Use script.Parent.Parent.CFrame.

5 Likes

Make a primary part by weld? Or, i need to find primary part?

You need to make a part and attach all the other parts to it using welds or weldconstraints depending on the situation for the model. Then you will be able to tween the primary part instead of the model.

o, i understood! thanks for helping.!

are you sure this works? I have welded all my parts to the primary part and tweened yet only the primary part rotates

here is my code:

And heres the model:

1 month late… buuuut,

make sure only the primary part (which you are tweening) is anchored and the rest (which is welded) is left unanchored

I hope this helps future people that see this post :slight_smile:

It was already solved lol, but thanks anyways for the help