Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How do I use a Motor6D?

Asked by 8 years ago

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.

2 answers

Log in to vote
1
Answered by 8 years ago

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

0
I think this is not what OP meant exactly, but this is a great example of why you would use Welds. Motor6D's are useful, though, because they can be used in conjunction with ROBLOX's animation editor. nicemike40 486 — 8y
0
Yea, they're truly great you can add amazing things to your games such as a dragon... You would never think Roblox would let you do that. KingLoneCat 2642 — 8y
Ad
Log in to vote
2
Answered by 8 years ago

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.

0
What are you talking about.. It is possible to use Motor6Ds for animations... KingLoneCat 2642 — 8y

Answer this question