@persist Target:entity Color:vector RandomColor:vector Chip:vector

interval(100)
E = entity()
E:setMass(5)
E:setColor(255,255,255)
if(first()){
hint("Made by Erza",150)
hint("Do !(Name) to target people",150)
hint("Do !protect while looking at the chip to protect it",150)
hint("Do !unprotect to unprotect it",150)
    E:removeTrails()
    findByClass("player")
    A=findToArray()
}
#########################################
#MAKE SURE YOU REMOVE ALL #'S AND PUT YOUR STEAMID AND #NAME IN THE APPROPRIATE SPOTS!
#########################################
#DO !protect TO MAKE THE E2 UNTOUCHABLE. DO !unprotect TO #UNDO IT
#########################################

# if(first()|duped()){
#    if(owner():steamID() != "YourSteamID"){
#        printColor(vec(255,0,0),"This is property of YourNameHere!")
#           selfDestructAll()
#    }
#}
#
#if( dupefinished() ){ reset() }
#
#if(owner():lastSaid()=="!protect"){
#        entity():propNotSolid(1)
#    }
#    if(owner():lastSaid()=="!unprotect"){
#        entity():propNotSolid(0)
#    }


    Me=owner()
    runOnTick(1)
    runOnChat(1)
    holoCreate(1)
    holoMaterial( 1, "models/shiny")
    holoModel(1,"models/sprops/misc/alphanum/alphanum_b.mdl")
    holoScale(1,vec(1.5,1.5,1.5))
    holoColor(1,vec(random(255),random(255),random(255)))
    holoPos(1,Me:pos()+vec(30,0,100))
    
    holoCreate(2)
    holoMaterial( 2, "models/shiny")
    holoModel(2,"models/sprops/misc/alphanum/alphanum_i.mdl")
    holoScale(2,vec(1.5,1.5,1.5))
    holoColor(2,vec(random(255),random(255),random(255)))
    holoPos(2,Me:pos()+vec(15,0,100))
    
    holoCreate(3)
    holoMaterial( 3, "models/shiny")
    holoModel(3,"models/sprops/misc/alphanum/alphanum_t.mdl")
    holoScale(3,vec(1.5,1.5,1.5))
    holoColor(3,vec(random(255),random(255),random(255)))
    holoPos(3,Me:pos()+vec(0,0,100))
    
    holoCreate(4)
    holoMaterial( 4, "models/shiny")
    holoModel(4,"models/sprops/misc/alphanum/alphanum_c.mdl")
    holoScale(4,vec(1.5,1.5,1.5))
    holoColor(4,vec(random(255),random(255),random(255)))
    holoPos(4,Me:pos()+vec(-15,0,100))
    
    holoCreate(5)
    holoMaterial( 5, "models/shiny")
    holoModel(5,"models/sprops/misc/alphanum/alphanum_h.mdl")
    holoScale(5,vec(1.5,1.5,1.5))
    holoColor(5,vec(random(255),random(255),random(255)))
    holoPos(5,Me:pos()+vec(-35,0,100))
    
if( chatClk(owner()) )
{
    local Ls = owner():lastSaid()
   
    if( Ls[1] == "!" )
    {
        Target = findPlayerByName( Ls:sub(2,-1) )
       
        hint( "Target " + Target:name() + " has been found.", 2 )
       
        hideChat(1)
    }
}
 
if( Target )
{
    holoPos( 1, Target:pos() + vec(30,0,100) )
}

if( chatClk(owner()) )
{
    local Ls = owner():lastSaid()
   
    if( Ls[2] == "!" )
    {
        Target = findPlayerByName( Ls:sub(2,-1) )
       
        hint( "Target " + Target:name() + " has been found.", 2 )
       
        hideChat(1)
    }
}
 
if( Target )
{
    holoPos( 2, Target:pos() + vec(15,0,100) )
}

if( chatClk(owner()) )
{
    local Ls = owner():lastSaid()
   
    if( Ls[3] == "!" )
    {
        Target = findPlayerByName( Ls:sub(2,-1) )
       
        hint( "Target " + Target:name() + " has been found.", 2 )
       
        hideChat(1)
    }
}
 
if( Target )
{
    holoPos( 3, Target:pos() + vec(0,0,100) )
}

if( chatClk(owner()) )
{
    local Ls = owner():lastSaid()
   
    if( Ls[4] == "!" )
    {
        Target = findPlayerByName( Ls:sub(2,-1) )
       
        hint( "Target " + Target:name() + " has been found.", 2 )
       
        hideChat(1)
    }
}
 
if( Target )
{
    holoPos( 4, Target:pos() + vec(-15,0,100) )
}

if( chatClk(owner()) )
{
    local Ls = owner():lastSaid()
   
    if( Ls[5] == "!" )
    {
        Target = findPlayerByName( Ls:sub(2,-1) )
       
        hint( "Target " + Target:name() + " has been found.", 2 )
       
        hideChat(1)
    }
}
 
if( Target )
{
    holoPos( 5, Target:pos() + vec(-35,0,100) )
}
