First of all, you shouldn’t use wait anymore! There is now a replacement, task.wait(), which is part of the new task library which you should use instead.
Second of all, i think that for pets you can just use constraints instead (like AlignPosition and AlignOrientation, i believe it would be more performant!)
And last of all, can you provide some code? It is hard to diagnose a problem without information!