Gun kills npc's but not the players

Hey developers!,

I made a gun for my new game but the problem is that it doesn’t kill the players it does kill the npc’s.

Can you help me?

here is a video:
robloxapp-20231021-1623593.wmv (4.7 MB)

1 Like

You have to enable teamkill yourself

how do I enable it? do I have to add a script at StarterCharacterScripts?

your going to have to edit the script of the tool

The problem is not on the teams

please someone reply I need serious help

You could use Tags, so when you fire a bullet at someone and the players character does not have that tag then it wont kill or damage them. So for example:

Before firing the bullet, add a check to see if the target has that tag.