So I am using the Roblox's Guns kit to add several guns in my game. I have a leader board which has a Kills stat in it. I want it so that whenever someone kills another player in the game, the kills value (in the leader board) should increase by 1. Now I already have enough knowledge about leader boards and I know how to increase the value of kills, but I just want to know, that inside the guns kit, which script is responsible for killing the other player and where inside that script should I add the kill increase? Once I figure that out, I can make the kill's counter increase myself. I just need to find out where should I add the script which is going to increase my kills counter? I searched through all the scripts but can't find the place where the player dies. So I can add it after that.

3 comments

0

We can't really help you if we don't know what you're working with. A link to the gun kit model would help.

0

This kit can be found in a game made by roblox with medkit and guns. As he said it's Roblox Guns Kit

0

Just edit the code, so that when you shoot the player, it adds a creator tag to the humanoid and when the players die, check if they have the creator tag and then give them a kill, that's how typical fps games do it