``` If Button = vbKeyRButton Then If SpellMemorized > 0 Then If GetTickCount > Player(MyIndex).AttackTimer + 1000 Then If Player(MyIndex).Moving = 0 Then Call SendData("cast" & SEP_CHAR & SpellMemorized & END_CHAR) Player(MyIndex).Attacking = 1 Player(MyIndex).AttackTimer = GetTickCount Player(MyIndex).CastedSpell = YES Else Call AddText("Cannot cast while walking!", BRIGHTRED) End If End If Else Call AddText("No spell here memorized.", BRIGHTRED) End If End If ``` I get error : Compile Error: Variable not defined (I don't code, second day messing around with VB6) I just want it so that you memorize the spell then you can right click anywhere and it will cast the spell you have memorized and on the npc/player your clicked on. Thanks for the help in advance.