"Have fun" it's like you want us to do it all for you
Also, that code looks like you've over complicated it. I don't understand why there's a return at the end.
The main reason why it's giving you that console spam is because you might be trying to force plant in the same spot. Although, I don't really know if this is the problem, (Thanks Zeblote) add debugs or something so you know where it's causing the console spam. Although if you do get stuck you should add debugs on places
Edit:
if(%client<0){return;} should either be if(!isObject(%client)) return; or if(!isObject(%client)){return;}, you're going to have silly errors with clients if it gets checked, but just use isObject for checking if objects exist