@name 
@inputs Button
@outputs 
@persist T E:entity J:vector Y:entity
@trigger 

if(first()){T=0     E = owner()}
if(Button==1){
if(T==0){
   
        print(_HUD_PRINTCENTER,"5")
    timer("tp5",1000)   
J = owner():pos()
holoCreate(1)
holoModel(1,"torus3")
holoScale(1,vec(10,10,5))
T=1
}
}

runOnTick(1)
holoPos(1,owner():pos())
if(clk("tp5")){timer("tp4",1000)
    print(_HUD_PRINTCENTER,"4")}
    if(clk("tp4")){timer("tp3",1000)
            print(_HUD_PRINTCENTER,"3")}
    if(clk("tp3")){timer("tp2",1000)
            print(_HUD_PRINTCENTER,"2")}
    if(clk("tp2")){timer("tp1",1000)
            print(_HUD_PRINTCENTER,"1")}
    if(clk("tp1")){
            print(_HUD_PRINTCENTER,"Teleporting...")
            T=0
    E:tele(entity():pos() + vec(0,0,0))
    holoDelete(1)
}
