So a Motor6D as far as the Scripting Wiki has said is used in animations and can move upon all the axis. Expect how do I do that? I only figured out how to move it upon 1 axis.
Well, Motor6D
's have several properties it's properties are much like Weld
's properties it has a Part0
, Part1
, C0
, C1
and so on so forth also it has MaxVelocity
. So you can use the C0
and C1
properties and make it go through all axis by using for loops such as...
for i = 0, 100 do wait() motor.C0 = motor.C0 * CFrame.new(.1,.1,.1) end
The above code should work if you've set the Part0
and Part1
and also if the part is NOT Anchored
and CanCollide
property of parts are true the code above will make the motor's C0
property multiplied by 0.1 every time a 100 times if motor is a variable for the Motor6D
.
I hope I helped you understand some what about Motor6D's and thank you for reading this answer!
P.S. Motor 6D's are so great and useful for RPG games and for creation of NPC that you want to make move.
~~ KingLoneCat
You can't exactly use those 3D all-axis rotations by yourself, but ROBLOX uses them! Essentially, you put Motor6Ds at the joints of your object, and then you use the animation editor on that object. ROBLOX takes care of the rest, basically. As for animating things yourself using Motor6Ds -- not yet.