[FUNCTION SEARCH] player kills someone

okay, im looking for a function that will make something if you kill a player.

thank you all for answering, i know my english is horrible.

Hooks are here for just that reason
local function PlayerWasKilled(victim, inflictor, killer)
–do things here
hook.Add(“PlayerDeath”, “MyPlayerDeathHook”, PlayerWasKilled)
MyPlayerDeathHook is just a unique name for the hook, you can call it whatever you want.

woah, im so stupid X( , thank you!!!