@name Tha Magic SawBlade 
@persist  V:vector Gyro:angle Player:entity Owner T:entity KP:entity #some of these might not be used,i dont know wich but it dossen't matter 
@model models/hunter/blocks/cube025x025x025.mdl
runOnTick(1)
runOnChat(1)

#################################################################

Me = owner()
Plate = entity()
#################################################################
if (owner():lastSaid():sub(1,1) == ("!")) 
{hideChat(1)}

if (first()){V = vec(0,0,0)
    Plate:setTrails(10, 70, 8,(""),vec(178,5,0),255)
    Plate:setMaterial("Models/effects/vol_light001")
    hint("Your A Wizard Harry",10)
    hint("For help type !help",30)
    }

if (owner():lastSaid():sub(1,1) == "/") { hideChat(1) }

if (owner():lastSaid() == ("!owner")) {Owner=1 P = 0 K=0 Aim = 0 PYR=1}

elseif (owner():lastSaid() == ("!off"))
{V = vec(0,0,0),Owner=0 P = 0 PYR=0}

elseif (Me:lastSaid() == ("!fire")) 
{ V = (Me:aimPos() - Plate:pos())* 4 Owner=0 P=0 K=0 Aim=0}

elseif(Me:lastSaid() == ("!aim"))
{Aim = 1}


if (chatClk(owner()))
{M = lastSaid():explode(" ")
if (M:string(1) == ("!track"))
{ T = findPlayerByName(M:string(2)) P = 1 Owner = 0 K=0}
}

if (chatClk(owner()))
{M2 = lastSaid():explode(" ")
if (M2:string(1) == ("!kill"))
{ KP = findPlayerByName(M:string(2)) P = 0 Owner = 0 K = 1 Aim = 0 PYR = 1}
if(Me:lastSaid() == ("!help"))
{Help = 1}
}


#################################################################
if (PYR){Pang = -entity():angles():pitch() Yang = 250 Rang = -entity():angles():roll()}
if (Aim) {Owner=0 P=0 K=0 PYR=0 Pang = -Plate:elevation(Me:aimPos()) Yang = -Plate:bearing(Me:aimPos()) Rang = -entity():angles():roll() V = Me:aimPos() - Plate:pos()*1} else{PYR=1}
if (K) {V = (KP:pos() - Plate:pos()+vec(0,0,50))*500}
if (P) {V = (T:pos() - Plate:pos()+vec(0,0,120))*500}
if (Owner){V = (Me:pos()  - Plate:pos() + vec(0,0,120) ) *500}
if (Help == 1){hint("!owner = Return sawblade to your Pos",30) hint("!off = sawblade fals to the ground",30) hint("!fire = Sawblade follows your aim very fast",30) hint("!aim is Same as !fire but slower",30) hint("!track <PlayerNameHere> Track player by that name",30) hint("!kill <playername here> kill player by that name",30)}
Gyro = ang(Pang,Yang,Rang)*150
Plate:applyAngForce(Gyro + $Gyro*6)
Plate:applyForce(V + $V*6)

#################################################################
####HOLO####
holoCreate(1)
holoModel(1, "icosphere3")
holoMaterial(1, "models/alyx/emptool_glow")
