I'm trying to make an npc but I can't put it at the right spot

So one of my friends made an animation for me to create an npc which is supposed to sit on the table, but as soon as i put the npc near the table this happens… I can’t find a solution

Note : This only happens when I run the game, not when im in studio.

1 Like

Is your goal to play a certain animation on a loop while the NPC is seated on the table?

Try anchoring the NPC first. I’m not sure if this may work in your case but I know this does work with static poses.

I tried to anchor the npc but then it doesnt play the animation

Alright. Try unanchoring the NPC, including the HumanoidRootPart. Also check to ensure that when you (or your friend in this case) created the animation, that the priority was set to 1 (Action).

If the animation isn’t playing, try this:

Create a Script in your NPC’s model. Place the Animation inside of the script, and ensure the AnimationId is correct, then type the following inside the Script:

local animation = script:WaitForChild('Animation')
local humanoid = script.Parent:WaitForChild('Humanoid')
local sit = humanoid:LoadAnimation(animation)
sit:Play()

If the priority wasn’t set to 1 (Action), add this line of code below sit:Play():

sit.Priority = 1

It should look something like this:
Screenshot_11
I hope this helps!

It still doesn’t work sadly… It still happens

From what I just saw in that little clip, the HumanoidRootPart was shifting up and down as you were moving it, which in turn dragged the rest of your character upwards.

See if anchoring the HumanoidRootPart only solves this issue.

1 Like

Oh well it’s fixed now! Thanks for the help.

No worries! I’m glad I was able to assist. Good luck with your project! :smile: