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

While NPC is doing animation, can't move him?

I've made it so this NPC does an animation, however obviously when he is preforming the animation, you can move him around by running into him. Anyone know how to prevent this from occuring?

2 comments

0

NPC.HumanoidRootPart.Anchored = true

0

You could also change the player's walkspeed to 0 while the animation plays. The player will still be able to turn around its axis tho.

1 answer

Place welds on the torso if it is stationary and weld it to an invisible (also preferably anchored) brick. Also try to anchor the humanoidrootpart, which can be done in the command menu and properties tab.

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