Pretty simple premise here, this function is only running once. When I enter the game the first time my character dies it runs fine, but after another respawn it doesn't return anything. How could I make it run every time the character dies?
local player = game.Players.LocalPlayer
local character = player.CharacterAdded:wait()
character:WaitForChild("Humanoid").Died:connect(function()
print("Player was killed")
end)
Any help would be greatly appreciated. It's probably a very simple solution I just couldn't see it.
