I tired 1000 delay after the attach, I should do that after the command to, didn't try that.
I will try thanks.
You should try to make your code a little smarter about how much delay it needs. All servos have an advertised speeds, typically in seconds per 60º (which has always seemed rather odd to me, but that's the standard). A bit of quick math can give you a value of say, milliseconds per degree.
So say your servo takes 0.17 second to rotate 60 degrees (that's fairly typical for a hobby servo, not too fast, not too slow). That is 170ms to rotate 60º or 170/60 = 2.83ms to rotate 1º. Round that up to 3ms per degree.
As long as you keep track of your current position, and your target position, you can easily calculate how long it will take for your servo to move to the new position.
I'd also recommend handling the pan & tilt together. That way it pans and tilts at the same time, one synchronous, smooth operation, as opposed to first panning, then tilting serially.