You basically set Attachment0 to an attachment or a part. You can choose if you want the force to be applied in the ObjectSpace or WorldSpace with the RelativeTo property. The rest is self explanatory.
Forgot to mention Attachment1 which is used with RelativeTo if you want to use another object as a reference.