That is basically it
✓ ANSWER ACCEPTED
How to do when an enemy dies it teleport you to another game?
1 answer
✓ Accepted answer
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.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
dont worrie i didnt need the player
AND can i have more precision to where do i place the script