Okay… this is… very poorly optimized.
Let’s assume you have eighteen parts doing this. It’s eighteen for loops, for a variable that will never change. Remove the function, and remove the loop. Will do the job.
A BodyForce’s Force property stays the same after being set as far as I know.
Also, I think you can do it easier than that. Set its MaxForce property to 0, 99999999, 0, and its P property to 9999999. It’ll just float. No need for a script.
Thanks for the tutorial anyways!