Roblox Gun Pack Kill Detection System: Printing Messages on Player Kills

1. What do you want to achieve? I want to create a system in Roblox that prints a message whenever a player kills another player using the Roblox gun pack.

2. What is the issue? I need assistance implementing a script that detects when a player kills another player with a gun from the Roblox gun pack and prints a message to the output.

3. What solutions have you tried so far? I’ve looked into using RemoteEvents and RemoteFunctions to communicate between the client and the server, but I’m not sure how to specifically detect when a player kills another player with a gun from the Roblox gun pack. I’ve also searched the Roblox Developer Hub for relevant documentation but haven’t found a solution yet.

2 Likes

Hello, I’ve ran into the same problem as you and now I know the solution.

You can make the gun add a ObjectValue to the player that was hit, and from there, you can detect who killed the player.

Please try it and let me know if it works, if not, I’ll try to help more! :smile:

1 Like

Hey, Thanks for helping i will try it and tell you if it worked!

1 Like