HC-05 Disconnecting After 2 seconds

Tested on both 3.3 v and 5v. I've had it connected to my mac before while connected on 3.3 v and it stayed connected for hours. But just to be safe I've tested all of your guys' suggestions on both power sources. I just can't use 5v permanently because there's a servo module attached to it