That is basically it
If the enemy has a humanoid, there's an event on the humanoid called "Died".
You could do something like:
local teleportService = game:GetService("TeleportService") local enemyHumanoid = -- put the location of your enemy's humanoid here enemyHumanoid.Died:Connect(function) -- teleport player using teleportService here end)
I will not provide code to figure out which player has killed the enemy, as your question does not ask for that. You must figure that part out on your own.