Can i see the code that performs the swaying? I may be able to help. (Also, there is a windshake plugin you could probably use to add wind instead, it is very cheap. You can find information about it on this post)