How to script an animated cape or animated object to character?

So my friend animated a cape but I don’t know how I would go around to script it to the character and how to play the cape to play it’s animation on the character. How exactly would I do this?

Video:

You could just weld the model and put an animation controller on it:

Do I put the animationController in the Capemodel or in the humanoidrootpart?

You would put the animation controller in the model which you want animated which is the cape model.

You would not put it in humanoid root part as it’s not the model containing the humanoid root part.

You would not put it in the character model as well as the character already has a humanoid that does the animations.

Hmm so it seems to still not be working for some reason, the cape animation should play… I’m gonna double check everything. basically the armor should weld to your character once you spawn in, I just put a local script inside of the cape part aswell as the animation controller and the animator. I’ll send you a picture. Maybe I did something wrong?

Picture:
image

local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local AnimationController = script.Parent:WaitForChild("AnimationController")
local Animator = AnimationController:WaitForChild("Animator")

local animation = Instance.new("Animation")
animation.AnimationId = "http://www.roblox.com/asset/?id=11446031494" -- Default dance for R15

local track = Animator:LoadAnimation(animation)

track:Play()

print("Animated Cape")

I don’t mean to sound unhelpful, but couldn’t you ask your friend what they did? Seems like it would get you an answer a bit quicker.

What friend? If you’re talking about the person Im asking for help right now, I just met him. The friends I have don’t know how to script so I’m kind of solo

Hm.

Anyways, I couldn’t imagine why you couldn’t DM them anyways. Give it a try :stuck_out_tongue:

I use a custom rig for my waving hair and mounted rider. The same could be done with a cape.

Once you get the rig and skin mesh the cape, you can attach it like an accessory and it will animate.

I have not successfully made 2 animators operate while welded together.

That’s a local script, and if it is in the workspace I don’t think it will run.

Maybe it does when it’s under the character? I don’t know. Sorry if this is false.

When the cape is duplicated from serverstorage, it’s parented into the character. so Its in the character after the character spawns in

I don’t think that method will work with a welded cape to the character. How exactly would i script that

1 Like

If you animate the cape bones and nothing else, you simply play the animation. It should not interfere with the rest of the rig.

Could you show me some steps into how I do this exactly? My friend animated the cape and you can see the bones in it, I’m just stuck on the part of scripting it to the character when they join in the game with the armor. Showing me some steps to do this would really help

Wait so its actually working on the npc but how can I make it so it works on my actual character? Its okay if you don’t know.

I have not done this specific task, sorry. I would have to answer all of these questions to even start

  1. can you have 2 working animators in a single player? I think the answer is no, leading to questions 2-5
  2. can you fuse 2 rigs and have the animator recognize the new rig? I think yes
  3. can you fuse rigs mid game?
  4. when do you have to load an animation in relation to modifying a rig?
  5. if you have to make the rig in advance, can you swap it in mid-game?

I hope someone has done this and can help you more directly. I will probably investigate this some day.