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

how can i stop pushing the npcs?

I'm trying to make some aggressive NPCS that do animations and attack you but the problem that the player can push the NPC and the NPC can also push the player, i tried to anchor the "Humanrootpart" but this will make the NPC stop following me, so is there a way i can make it to stop pushing the NPC?

HERE GIF SHOWING WHAT I MEAN

2 answers

I'm not sure if this works but try enabling the custom physical properties of the torso and set the desnity to 1. This should make it heavier than the player and therefore not be moveable by the player as easily.

5 comments

0

i tried adding it using a script and it didnt work :

0

heres a picture of the code : http://prntscr.com/pe497f

0

Do it in the properties tab when you have the torso of the npc selected

0

i set it to 100 and i still can push it but slower and also the npc can push so this will not help , thank you anyway :)

0

np

The npc is not animated therefore it does nothing, if you are using for just decoration purposes and it is not suppose to move then anchor it, other than that if it was an npc that would follow you or walk around, same thing would not happen.

3 comments

0

its npc that follow me and walk the npc in the gif just to show an example , so what should i do to stop that?

0

i was wrong the animation is working when i anchor the part but how it suppose to move if its anchored ? please help me

0

So if you want it to move it means you probably want it so it follows people right?

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