Hi @Keonafielitz, welcome to the forum
Without more context it’s difficult to say for sure what the issue is, but at a guess your issue may be similar to this one, where two libraries were being used in the Arduino that used the same internal timer, which meant there were conflicts and the ‘servo’ control wasn’t able to operate consistently while the other code was doing things.
If that is the case, you may need to make workarounds in your code, or if the Arduino type you’re using has multiple timers available you may be able to configure the relevant libraries to use separate timers.
By the way, I’ve edited your post to put your code into a code block. You can read about how to do that (and things like how to search our resources) in the How to Use the Blue Robotics Forums post