Attachment alignement issues

Hi!

I’m trying to weld a wheel to a chassis but I’m having issues getting both attachments to face each other. The chassis has an attachment facing outwards where the wheel should go and the wheel has one that should align itself with the chassis attachment.

The problem is that I can’t get both attachment to face each other while keeping the local wheel rotation offset.

Weld.C0 = CFrame.new(Aligns.Chassis.Position)
Weld.C1 = CFrame.new(Aligns.Wheel.Position)

The code provided above only aligns their position but not their rotation.

image
This is how they should face each other while taking in accout the CFrame.Rotation property of the wheel attachment.

Thanks!

1 Like