I am trying to make a part be able to go up in the air with a bodyforce but the API made barely any sense to me. Any help is appreciated on how I could accomplish this. If pictures are needed, I can provide them.
I’m assuming you read this: Documentation - Roblox Creator Hub
Basically you put enough force in a BodyForce to counteract the Mass of the Part or Model and move it upwards.
I actually looked at the BodyForce API. I tried inserting a BodyForce with a Vector3 force applied and nothing happened. The part was un-anchored and didn’t move upward.
So you’ve answered your own question then, since Anchored Parts don’t move using Roblox Physics.
Do you need the Part to move in other directions, or is it just rising and falling vertically?
Oops, that was a typo. I meant to say it was unanchored.
I need it to just rise and fall simulating a jump.
Still hasn’t been solved. If you have any API or example that can help me understand, it would be much appreciated if you shared it with me.
I’m not really sure, but the formula for anti gravity is part:GetMass() * Workspace.Gravity in the Y axis like this.
Part.BodyForce.Force = Part.BodyForce.Force + Vector3.new(0,Part:GetMass() * workspace.Gravity,0)
I just tried your code using velocity and it worked partially except for that it changed every part in workspace’s velocity.