@name Spawner Chip
@persist Ang:angle Model:string Limit Array:array T
Me = owner()
runOnTick(100)
runOnChat(1)
if(first()){T = 0}
if (changed(owner():keyReload()==1)) {Ang=Ang+ang(0,15,0)}
holoCreate(1) holoAng(1,Ang)
holoPos(1,owner():aimPos()+vec(0,0,25))
holoModel(1,Model)
if (changed(owner():keyUse()==1)) {
    if(Limit == 0){
        if(T == 0){
E = propSpawn(Model,owner():aimPos()+vec(0,0,25),Ang,1)
Limit++
timer("Limit",500)}}}
if(clk("Limit")){
Limit = 0}
if(owner():lastSaid():find("models/")){
    hideChat(1)
    Model = owner():lastSaid()}
if(changed(owner():keyAttack2())){
    if(T == 0){
    G = owner():aimEntity()
G:propDelete()}}
if (chatClk(owner())){
    Array = owner():lastSaid():lower():explode(" ")   
if (Array[1,string] == "/toggle") {hideChat(1) T++}}
if(T == 0){holoAlpha(1,150)}
if(T == 1){holoAlpha(1,0)}
if(T == 2){T = 0}


