if ur units that are to be respawned are heroes, then its easy.
first create three variables:
Unit variable named "LocalUnit"
Timer Window variable named "LocalTimer"
Timer variable named "timer_MyTimer"
make two triggers
Trigger - Trigger 1
Events
Conditions
Actions
Custom script - local timerdialog udg_LocalTimerWindow
Countdown Timer - Start timer_MyTimer as a One-shot timer that will expire in 10.00 seconds
Countdown Timer - Create timer window for (Last created timer) titled "Hero Respawn"
Set LocalTimerWindow = (Last created timer window)
Countdown Timer - Show (Last created timer window)
Wait - Wait 10.00 seconds
Countdown Timer - Destroy LocalTimerWindow
Trigger - Trigger 2
Events
Unit - A unit dies
Conditions
((Dying Unit) is A hero) equals to True
Actions
Custom script - local unit udg_LocalUnit = GetDyingUnit()
Trigger - Run <Trigger 1>
Wait - Wait 10.00 seconds
Hero - Revive (Dying Unit) instantly at (Center of <your region>), Show revival graphics