@name Timelapse
@persist Entity:entity [AngData PosData]:table Max T

interval(100)

if(first()) {
entity():setAlpha(255)
Entity = entity():isWeldedTo()

AngData = table()
PosData = table()

T=0
Max = 10

}

if(T<Max & holoCanCreate()) {
    
        T++
        holoCreate(T)
        holoModel(T,Entity:model())
        holoMaterial(T,Entity:getMaterial())
        holoColor(T,Entity:getColor4())
        holoAng(T,AngData[T,angle])
        holoPos(T,PosData[T,vector])
}
    
    AngData:pushAngle(Entity:eyeAngles()) 
    PosData:pushVector(Entity:pos())

    for(I=1,Max){
        holoAng(I,AngData[I,angle])
        holoPos(I,PosData[I,vector])
        holoAlpha(I,255/Max*I)
    }
    
    if(AngData:count()>=Max) {AngData:shift()}
    if(PosData:count()>=Max) {PosData:shift()}


