Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 6 years ago

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?

0
NPC.HumanoidRootPart.Anchored = true Elixcore 1337 — 6y
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. Le_Teapots 913 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

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.

Ad

Answer this question