Rotating a model that has multiple Motor6D parts

How would I rotate an entire model that contains multiple Motor6D instances. Rotating each Motor6D is not efficient and is a painful process to rotate each Motor6D instance properly.

1 Like

Could you explain a bit more?

What’s your use-case, do you want to teleport a model and apply a specific orientation?

Basically I have a viewmodel for a FPS gun system I’m making. We have Motor6D attachments for the Left Arm, Right Arm, Handle, Mag, etc. If I want to crouch I’d have to adjust the C0 to a specific value of every Motor6D attachments which is a pretty hideous process. I’m wondering if there’s a way where I can rotate or adjust the CFrame of my viewmodel without having to do this.

1 Like

You can just PivotTo() your viewmodel and apply your crouching offset there.

How are you positioning the viewmodel? Usually there’s a humanoidrootpart of the viewmodel that you set to the camera’s cframe every frame, could you not set that part every frame but with an offset?

2 Likes

Just tried using Pivot’s however it would have no impact on the model.

1 Like

How are you even setting your viewmodel to the camera? Could you show your code?

Alright well after looking into it. I believe that solved my problem. I was about to explain why my method wasn’t working but I realized that the script would set my viewmodel’s CFrame for each render stepped making any additional changes not work. Thanks. (You too @Downrest)

2 Likes