Ok, so I made this script to create a Motor6D:
PART1 = Workspace.Part1
PART2 = Workspace.Part2
MotorC0 = Workspace.MotorPart.CFrame:inverse( ) * PART1.CFrame
print(MotorC0.p)
MotorC1 = PART2.CFrame:inverse() * Workspace.MotorPart.CFrame
print(MotorC1.p)
Motor = Instance.new("Motor6D", PART1)
Motor.Part0 = PART1
Motor.Part1 = PART2
Motor.C0 = MotorC0
Motor.C1 = MotorC1
wait(1)
print(Motor.C0.p)
print(Motor.C1.p)
Output:
0.499996185, -0.600000143, 0
0.500003815, 0.599999905, 0
(break of 1 second)
0.499996185, -0.600000143, 0
0.500003815, 0.599999905, 0
The weird thing is, the results of what the Motor6D actually does compared to the printed CFrame values in the output are totally different. What's supposed to happen is the two parts remain in the same position stuck together with a Motor6D, with the C0 of the Motor6D where the 'MotorPart' is. But what's happening is entirely wrong and I don't really understand why. Here's a video to demonstrate what happened: https://www.youtube.com/watch?v=wv5OuAkiuMk&feature=youtu.be
|