Skinned Mesh animating wrong

I’m trying to make an animated coat for my game, and it worked on an animated cape I made but not my coat? They have the same script to run the animations.

It ends up stretching out really far in game and clipping through the floor.
image

local animation = script.Parent:WaitForChild("AnimationController"):LoadAnimation(script.Parent:WaitForChild("idle"))
animation:Play()

Thanks for any help.

5 Likes

Adding a skinned mesh also use humanoid to loadAnimation
So you destroy the animcontroller
And put this script

Local animation = Script.Parent.Humanoid:LoadAnimation("Script.Animation") --There is othermethod
animation:Play()
2 Likes

I did some more experimenting and I found out that this only happens on animations where I move around the bones instead of just rotating them, is there any way around this?

1 Like

You mean world WorldCFrame.Position?

1 Like

I don’t think so, it’s like the position in the roblox animator

1 Like

Am confused right now can i understand what do you want to do?
Apologies from my brain

1 Like

I’m just trying to animate the coat so that it looks like its flowing in the wind, its just animating wierd like shown in the picture in the original post

1 Like

Ooh now i understand but do you want to make it from The avatar animation or as a script

1 Like

I’m animating it on the roblox animator and running it from the script

1 Like
local animation = Instance.new("Animation")
animation.AnimationId = "" --Anim ID
local animationTrack = animationController:LoadAnimation(animation)

-- Play the animation
animationTrack:Play()


1 Like

Or you can use the Anim controller’s Animator