How to register kills?

Not sure if this has been asked before, but I could not find it anywhere on this forum.

Anyway, I am wondering what the best way to register kills from a weapon would be, the most exploit secure version. You need to keep in mind that different people can shoot the same person, but that the last person who shot gets the kill.

How would I do that? Like, should I save it in a table on the server and so forth. I am really blank here, so any input would be great. And I hope you all understand what I mean, if not, feel free to ask questions!

Well in the script where you fire the bullet and deal damage to them, after you deal damage to them check if their health is less than or equal to 0. If it is then you know that you killed them, so you can award a kill to that player.

4 Likes

Thanks a lot! And happy birthday, hope you have a great day!

2 Likes

Oh thanks, glad to help :slight_smile: ! It’s actually not my birthday lol, I just picked a random birthday when I made my acc.

1 Like

I hope you have a great day regardless :slight_smile:

1 Like