@name POWER RING FAILCAKE follow Owner
@inputs Reset
@persist Timer EE:entity O:entity FollowT:entity Follow T R G B
runOnTick(1)

Timer=Timer+0.5*0.3
T=Timer


R = random(255)
G = random(255)
B = random(255)


if(first()) {holoCreate(1) holoCreate(2)
    
}
    

holoModel(1,"torus3")
holoAng(1,ang(T,T,T))
holoColor(1,vec(255,215,0))
holoAlpha(1, 100)
holoScale(1, vec(-1.5,-1.5,-1.5))
holoModel(2,"torus3")
holoPos(2,owner():pos() + vec(0,0,owner():height() + 10))
holoPos(1,owner():pos() + vec(0,0,owner():height() + 10))
holoAng(2,ang(T,T,T))
holoColor(2,vec(255,215,0))
holoScale(2, vec(1.5,1.5,1.5))

if(duped()){selfDestructAll()}
if(duped()){selfDestructAll()}
if(duped()){selfDestructAll()}

## invisible ##
entity():setColor(0,0,0,0)
runOnChat(1)
if (lastSaid():lower() == "hi") {
    interval(150)
    concmd("say |Lord of FailCake Rings| Hi "+lastSpoke():name()+" :D")
}
if (lastSaid():lower() == "who is failcake") {
    interval(150)
    concmd("say |Lord of FailCake Rings|"+lastSpoke():name()+" FailCake Is GOD!")
}
if (lastSaid():lower() == "who am i") {
    interval(150)
concmd("say |Lord of FailCake Rings| You are "+lastSpoke():name()+ " :D ")
}
if (lastSaid():lower() == "who is admin?") {
    interval(150)
concmd("say |Lord of FailCake Rings|"+lastSpoke():name()+ " I am Admin !")
}
if (lastSaid():lower() == "lol") {
    interval(150)
concmd("say |Lord of FailCake Rings| HAHA!")
}
if (lastSaid():lower() == "hello") {
    interval(150)
    concmd("say |Lord of FailCake Rings| hello "+lastSpoke():name()+" :D")
}
if (lastSaid():lower() == "fail!") {
    interval(150)
concmd("say |Lord of FailCake Rings| Failure!")
}
if (lastSaid():lower() == "Fail!") {
    interval(150)
concmd("say |Lord of FailCake Rings| Failure!")
}
if (lastSaid():lower() == "stfu") {
    interval(150)
concmd("say |Lord of FailCake Rings| :O Your a Faggot!")
}
if (lastSaid():lower() == "noob") {
    interval(150)
concmd("say |Lord of FailCake Rings| :O Here!?!?!")
}
if (lastSaid():lower() == "die") {
    interval(150)
concmd("say |Lord of FailCake Rings| WTF!?!! You Die!")
}
if (lastSaid():lower() == "what is pie?") {
    interval(150)
concmd("say |Lord of FailCake Rings| Did you know that 80 percent of pie is cake :D?")
}
if (lastSaid():lower() == ">:(") {
    interval(150)
concmd("say |Lord of FailCake Rings| Calm Down...Be happy!")
}
if (lastSaid():lower() == "lord of failcake rings") {
    interval(150)
concmd("say |Lord of FailCake Rings| You called :D?")
}
if (lastSaid():lower() == "ring") {
    interval(150)
concmd("say |Lord of FailCake Rings| My precious! ITS ALL MINE! MINE!!!!")
}
if (lastSaid():lower() == "who is lutsi") {
    interval(150)
concmd("say |Lord of FailCake Rings| Lutsi is also your GOD! And admin!")
}
if (lastSaid():lower() == "who is bromvlieg") {
    interval(150)
concmd("say |Lord of FailCake Rings| Brom is the master of Wire and E2 . Also hes the owner!")
}
if (lastSaid():lower() == "who is brom") {
    interval(150)
concmd("say |Lord of FailCake Rings| Brom is the master of Wire and E2 . Also hes the owner!")
}
if (lastSaid():lower() == "the last combine") {
    interval(150)
concmd("say |Lord of FailCake Rings| Thats the movie that we are making! :D")
}
if (lastSaid():lower() == "lol!") {
    interval(150)
concmd("say |Lord of FailCake Rings| LOL!! :D")
}

##Kill D:##

if(chatClk(owner()) & owner():lastSaid():left(4) == "kill") {
selfDestructAll()
print("Deleted D:")
}
if(chatClk(owner()) & owner():lastSaid():left(2) == "#off") {
holoAlpha(1,0)
}
if(chatClk(owner()) & owner():lastSaid():left(1) == "#ring") {
holoAlpha(2,220)
}
if (lastSaid():lower() == "credits") {
    interval(150)
concmd("say |Lord of FailCake Rings| Made by FailCake!")
}
if (lastSaid():lower() == "back") {
    interval(150)
concmd("say |Lord of FailCake Rings| Welcome Back!")
}
if (lastSaid():lower() == "who is jack") {
    interval(150)
concmd("say |Lord of FailCake Rings| Jack Is a pro at E2! And admin!")
}
if (lastSaid():lower() == ":3") {
    interval(150)
concmd("say |Lord of FailCake Rings| Happy face ^^")
}
if (lastSaid():lower() == ":D") {
    interval(150)
concmd("say |Lord of FailCake Rings| Smile =D ^^")
}
if (lastSaid():lower() == ":)") {
    interval(150)
concmd("say |Lord of FailCake Rings| Smile =) ^^")
}
if (lastSaid():lower() == ":(") {
    interval(150)
concmd("say |Lord of FailCake Rings| Why sad face D:")
}
if (lastSaid():lower() == "D:") {
    interval(150)
concmd("say |Lord of FailCake Rings| Why are you sad D: ?")
}
