ok i figured it out it was my fualt the code didnt work right , becasue i didnt set my variable back to 0 until later , so it executed my function on everyone that went over my variable's value. simply fixed by resseting the value of the varaible as soon as my function executes

thansk for the help guys