Animating 2 or more characters

Hello, I’ve been working on a realistic army game and I was thinking if I can add Karate or Judo in the game, I know how to make 2 characters animate together using moon animator but like, how do I apply this in game? I want both characters to start the animation together, I’d be grateful for you help! (sorry I am still a beginner) :confused:

1 Like

So when they join the game, you want both of the animations to play?

You could use something along this lines of this

example=Humanoid:LoadAnimation(script.Parent.AnAnimation)
example:Play()

I am not sure as to how to play an animation in Studio as every script I have tried hasn’t worked.

But, have you animated the characters together?
If not you will have to play the animations together. Maybe something like this

wait(5) -- You don't need this. I just added it.

example = Humanoid1:LoadAnimation(script.Parent.AnAnimation)
example:Play()

example = Humanoid2:LoadAnimation(script.Parent.AnAnimation)
example:Play()

Borrowed the script from: Humanoid | Roblox Creator Documentation

To add on if you are using too animations you could do

example1=Humanoid:LoadAnimation(script.Parent.AnAnimation)
example:Play()

example2=Humanoid:LoadAnimation(script.Parent.AnAnimation)
example:Play()

if this does not work/ not fit for you I will send another script.

I want it for example when you press a key and place cursor on them they both do the animation

So when they use/click a detector you want it to play, if so give me 5 minutes I will send you a script.

1 Like

That’s what I am trying to do: https://i.gyazo.com/96d3066be10a6c0261e0f1e34111dc2b.gif
in the Royal Marines CT

Just like animation a sword, but instead, you will need to animate two ‘‘Npc’’ models at the same time to be in Sync movements…

if I were trying to do that, I would do something like this:

I would place
the ‘’ Npc 2’’ model inside the NPC 1 model, or vice-versa -
Adjust some positions before ‘’ creating the animation ‘’

  • later, you would just change the first position of the Npc, as in Gif. Like a instance pose:
    The initial frame, then, after adjusting the characters ‘’ pose ‘’, you would just animate according to their movements.
    I don’t know, But, that’s how i would do it.

I made it here in studio something similar to this, but saddly i got no time to post right now >-> since i gtg

I already have the animations ready, I just need some script to apply it in game, when you approach someone and you have the cursor on them while pressing a key the animation starts in both of characters yk