MoveTo and custom animation not working properly

Hello! I was recently experimenting with rigging and animating characters and decided to do a spinning animation on this character from a horror game you might know. I completed the spinning animation and it’s a looped movement animation and it plays but the problem is I used Humanoid:MoveTo and the custom character kind of scoots to the position…

She is supposed to smoothly glide over to the part but she spins, scoots, and repeats until she’s not even at the parts location. I’ve tried changing the animation movement type, looking for output errors, searching the forum, but I haven’t found anything quite like my situation. I also tried turning off can collide (just to see, I had a feeling the result would be expected) but she just fell through the floor… Here are my server scripts:
(Note: all parts of the character are unanchored)
MoveTo:

local Humanoid = script.Parent:WaitForChild(“Humanoid”)

task.wait(5)
Humanoid:MoveTo(game.Workspace.Obj1.Position)

Animation:

local Humanoid = script.Parent:WaitForChild(“Humanoid”)
local Animation = script.Parent:WaitForChild(“Animation”)

local LoopedAnimation = Humanoid:LoadAnimation(Animation)
LoopedAnimation:Play()

I think it’s because of the spinning animation? Don’t play the animation and see if it still scoots… if not, then it might be the mesh collision that causes it, i might be wrong though.

I turned off the animation script and she just turned towards the part and didn’t move. How should I fix the mesh collision?

Try changing the Humanoid HipHeight to something higher than what it already is.

1 Like

Thank you so much! You are so smart for thinking of this!! I had to adjust the hip height a few times because I thought it hadn’t worked at all but it’s at 7 now and works great. Thank you so much :heart:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.