CFrame to move model relative to Center point (required ? mark here)
I am trying to use CFrame to animate some models. I have a block called Center that is continuously moving. I want to move the Model relative to Center's movement. This is the code I have (but the model disappears when I run the function)
How do I make this work right? Thanks.
01 | function TransformOffset(model, center, new) |
03 | for _,v in pairs (model) do |
05 | if v:IsA( "BasePart" ) or v:IsA( "UnionOperation" ) then |
07 | v.CFrame = v.CFrame*center |