Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do i animate with motor6d in a way that seems less confusing?

I know you dont have a script for an example i just want to learn how to animate with motor6d for my sb scripts.

1 answer

✓ Accepted answer

Here's some of the basics of motor6D animating:

-C0 is the same as CFrame. If you're just turning the character's head towards a part when they click on a clickdetector or something, it'd be something like this:

--I'm not defining any values used (i.e. Head = character.Head) because it takes too much time :P

Part.ClickDetector.MouseClick:connect(function()
	Head.Neck.C0 = CFrame.new(Head.Neck.C0.p, Part.Position)
end)

-C0 is really the only thing you'll need to use when animating motor6Ds. There's another similar value called C1, which is basically the reverse of C0, so no one uses it. This model is a good example of how you can use C0. It's a script that makes your head and uppertorso follow your mouse.

2 comments

0

Thank you!

0

np :P

This discussion is preserved as it was. New answers, comments, and votes are closed.