Ok well how would you suggest I write it? I'm really bad with colliders. I just tried to rewrite the code but now all he does is run to the base's transform without touching the player and he can't grab the player anymore.
Viewing post in Baldi's Basics Tutorial: How to make a custom character comments
You need to properly check the booleans and ensure components for all objects are set in place. If a boolean is set to false, then the character will wander, however, if the boolean is true, then he will drag the player. Figure the problem out yourself, because I don't really know how to help you from this point on.