@name nigger
@persist Count Switch Player:entity
@trigger none

if (first()) {
    Name = ""
    Player = findPlayerByName(Name)
    Players = players()
    
    if (Player:name():find(Name)) {
        print("Found " + Name)

        Count = 10
        
        for (I = 1, Count) {
            holoCreate(I)
            holoVisible(I, Players, 0)
            holoScale(I, vec())
        }
        
        interval(500)
    } else {
        selfDestruct()
    }
}

if (clk()) {
    interval(500)
    
    Switch = !Switch
    Material = Switch ? "" : "123456789"
    
    for (I = 1, Count) {
        holoMaterial(I, Material)
    }
}
