You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? Keep it simple and clear!
I need to know how to get the player who damaged another player.
What is the issue? Include screenshots / videos if possible!
I can’t seem to figure out how.
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I’ve tried using object values, but they don’t seem to work.
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
You would use player tagging. Here’s a good tutorial on player tagging: How to Catch Combat Logging
(The person shows you how to do it, but it was for a different purpose. You can tweak it for your own use.)
Do you use a RemoteEvent to deal the damage? Also, do you want to keep track of the player that damaged another player till the damaged player dies, or do you wanna stop keeping track of the “damager” player instantly?
The first argument of OnServerEvent in RemoteEvent is the player instance.
This will be the player who executed the RemoteEvent, so first argument player instance is attacked player.