To help someone in a forum, don't mind this.
Problem was that the wait blocks were in the same script as the check for if the hand was "petting." This causes the checker to wait 3 seconds before checking the petting requirements again.