Player Spawn problems

hey guts i want the player to yield/(wait spawning) for 5 secondes an than play how do i do that?? thanks

Use a Coroutine. It allows you to declare wait periods.

You can make something like this:

var isEnable : boolean = true;

function Update(){
    if (isEnable){

function SetEnableOnTime(sec : int){
    yield WaitForSeconds(sec);
    isEnable = true;

So, set isEnable = false when respawn and call SetEnableOnTime(5)... An observation: yield WaitForSeconds cannot be called inside Update function.