Why dont you create a debug panel to display all the variables, maybe the equation is always true? At least this way you might spot the problem.

Im no expert, but I can't see anything wrong with the script


The Art of Conversation is dead : Discuss