i need it for a combat logging system
2 Likes
- Make sure that you capture the userid before the player leaves
- User game:GetService(“Players”):CreateHumanoidModelFromUserId(userId) to get the character
2 Likes
Use Player.CharacterRemoving, it will give you the Character model including everything inside it when the player leaves. But do keep in mind this will be triggered when the character respawns.
1 Like
for combat logging you can use game:GetService(“Players”).PlayerRemoving and check if player was in combat with a bool value which can be inside of player or anywhere you want
1 Like
can’t i just check if the player’s health is above 0?
why not just use Player.PlayerRemoving()
?