Need help with character

How can I reach the player when player respawns? On script

1 Like

I’m not sure what exactly you want. If you want to get the player from the new character you can use Players:GetPlayerFromCharacter(character).

1 Like

try this

local pl = game:GetService("Players")
function pcome(p)
	p.CharacterAdded:Connect(function(c)
		local hum = c:WaitForChild("Humanoid")
		hum.Died:Connect(function()
			wait(pl.RespawnTime + 0.1)
			-- c = character and character just re-spawned
		end)
	end)	
end
pl.PlayerAdded:Connect(pcome)

c will be our character when respawn