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

How would I go about playing an 2 rig animation ( Moon animator )?

So I made this gripping animation which includes 2 people ( 2 rigs ) but I have no clue how could I play it through a script ( in which humanoid do I load in the animation , play it etc )

1 answer

✓ Accepted answer

On moon animator, exporting group animations with 2 people inside of it ends up splitting the animation up into 2 different animations, one for each player. To play group animations, I would recommend making both players affected have the same position and then play the animation separately on each rig. Here's the scripting part:

local Player1Humanoid = --put the first player's character humanoid here
local Player2Humanoid = --put the second player's character humanoid here

local Animation1 = --put the first animation exported here
local PlayAnimation1 = Player1Humanoid:LoadAnim(Animation1)

local Animation2 = --put the second animation exported here
local PlayAnimation2 = Player2Humanoid:LoadAnim(Animation2)

Player1Humanoid.WalkSpeed = 0
Player2Humanoid.WalkSpeed = 0
Player2Humanoid.Parent.HumanoidRootPart.CFrame = Player1Humanoid.Parent.HumanoidRootPart.CFrame
Player1Humanoid.AutoRotate = false
Player2Humanoid.AutoRotate = false
PlayAnimation1:Play()
PlayAnimation2:Play()

1 comment

0

ay thanks man, it worked

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