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

Hi, how can i code an NPC to attack a player?

Asked by 5 years ago

where can i learn how to do this?

0
the roblox wiki my boy Theroofypidgeot 21 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

Well, first you need the NPC to find and follow the player by pathfinding.
Then when the NPC touches the player, make the player take damage.

0
Thank you for your reply. Aanggoodluck 0 — 5y
Ad

Answer this question