@name The FailCake IS a Lie :3 Holo Follower :D
@inputs 
@outputs 
@persist FollowT:entity Follow Parent:entity Model:array Scale:array Possion:array Color:array Number T

##Back to owner##

if(chatClk(owner()) & owner():lastSaid():left(3) == "me") {
    FollowT = owner()
}
     
##Follower :D YAY##

if (first()){FollowT = owner()}
if(chatClk(owner()) & owner():lastSaid():left(7) == "orbit") {
    if(owner():lastSaid() == "orbit") {
        findIncludeClass("player")
        findExcludePlayer(owner())
        Fsphere = findInSphere(owner():aimPos(), 50000)
        if(Fsphere > 0) {
            FollowT = findClosest(owner():aimPos())
            Follow = 1
    }
    }
}

##Credits##

if(chatClk(owner()) & owner():lastSaid():left(10) == "credits") {
print("Made By [SM]FailCake whit help from Brom")
}

##Kill D:##

if(chatClk(owner()) & owner():lastSaid():left(4) == "cakekill") {
selfDestructAll()
print("Deleted D:")
}

interval(20)

    if (first() == 0){
    Parent = entity()
    Number = 5
    Num = 0
    Color:setVector(1, vec(200,0,0))
    Color:setVector(2, vec(0,0,0))
    Color:setVector(3, vec(0,50,50))
    Color:setVector(4, vec(255,100,0))
    Color:setVector(5, vec(255,100,0))
    
    Model:setString(1, "cylinder")
    Model:setString(2, "cylinder")
    Model:setString(3, "cylinder")
    Model:setString(4, "sphere")
    Model:setString(5, "cone")
    
    Possion:setVector(1, vec(0,0,20))
    Possion:setVector(2, vec(0,0,25))
    Possion:setVector(3, vec(0,0,30))
    Possion:setVector(4, vec(0,0,39))
    Possion:setVector(5, vec(0,0,40.5))
    
    Scale:setVector(1, vec(3,3,0.2))
    Scale:setVector(2, vec(2,2,1))
    Scale:setVector(3, vec(0.1,0.1,1.5))
    Scale:setVector(4, vec(0.2,0.2,0.2))
    Scale:setVector(5, vec(0.1,0.1,0.1))
    Num = 0
    while(Num < Number){
        Num++
        holoCreate(Num)   
        holoMaterial(Num, "models/shiny") 
        holoModel(Num,Model:string(Num))  
        holoColor(Num,Color:vector(Num))
        holoShadow(Num,0)
        holoScale(Num,Scale:vector(Num))
    }
}
Num = 0
Pos = Parent:pos() + vec(0,0,owner():height() + 100)
while(Num < Number){
    Num++
    holoPos(Num,Parent:pos() + Possion:vector(Num))
}
##Flash :D##

setColor(random(255),random(255),random(255))

##Music !!##
if (first() | duped()) {
    runOnChat(11)
    T = 0
}

LastSaid = owner():lastSaid():lower()
O = owner()

if (LastSaid == "cake") {T = 1}
elseif (LastSaid == "stop") {T = 0}

if (T) {
    if ($T) {
         soundStop(0)
        O:soundPlay(0,0,"music/Portal_4000_degrees_kelvin.mp3")
        O:setMaterial("models/shiny")}
        timer("Color",10)
        if (clk("Color")) {
            O:setColor(random(255),random(255),random(255))
}
    }
else {
    soundPurge()
}
##INVISIBLE !##

entity():setColor(0,0,0)

##PROTECTION SISTEM MUAHAHAHAH##

if(duped()){selfDestructAll()}
