IDE

I downloaded the obstical avoidance sketch for the elegoo smart car I added the servo library but it wasn't with the sweep now when I try to add the servo sweep its a whole new sketch I can't create a avoidance sketch with out the servo in it I hope that's clear

It's not at all clear to me. Please provide a more detailed explanation of the problem you're having.

Clearly, English is a second language for you, but you seem to be having a problem with a new library. Note that, if you use a new library, you must restart the IDE so that it can find it. If you are having trouble with a library manager, just put the new file in the same folder as all the other libraries - and then restart the IDE.

Powerdvd2:
The sketch obstical avoidance I added the servo library to it it wasn't the servo with the sweep function now I can't load the servo with sweep library into the sketch

That's even worse than your last attempt. We want to help you, but if you won't make the effort to explain yourself then there's nothing we can do.

You can take a minute or two extra to provide enough details, after which we will likely provide you with a solution within a matter of minutes. Or we can waste days going back and forth with you providing cryptic clues and us playing guessing games. The choice is yours.