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

how can i stop pushing the npcs?

Asked by
tamor46 12
5 years ago
Edited 5 years ago

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

Log in to vote
0
Answered by 5 years ago

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.

0
i tried adding it using a script and it didnt work : tamor46 12 — 5y
0
heres a picture of the code : http://prntscr.com/pe497f tamor46 12 — 5y
0
Do it in the properties tab when you have the torso of the npc selected MrCatDoggo 213 — 5y
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 :) tamor46 12 — 5y
0
np MrCatDoggo 213 — 5y
Ad
Log in to vote
0
Answered by
Gingerely 245 Moderation Voter
5 years ago

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.

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? tamor46 12 — 5y
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 tamor46 12 — 5y
0
So if you want it to move it means you probably want it so it follows people right? Gingerely 245 — 5y

Answer this question