So yeah thats basically it, thanks
Yes, and It's a event of Humanoid called .Died.
You can use this event in both server and client script.
Example:
local Players = game:GetService('Players') Players.PlayerAdded:Connect(function(plr)) plr.CharacterAdded:Connect(function(char) repeat task.wait() until plr.Character -- checks when character is child of player. char.Humanoid.Died:Connect(function() print('player '..plr.Name..' died!' end) end) end)