FANDOM


The BodyPosition object applies a force on its Parent to move towards a position specified in world coordinates. If the Parent is already at the specified position then the BodyPosition will attempt to keep its Parent stationary. The strength of this force depends on several factors.

Body Position

Example

This force is stronger the further the Parent is from the goal. This distance component of the force is amplified by the value of P. If the Parent is in motion, its velocity will dampen the strength of the force. This dampening is amplified by the value of D. The resulting force is capped by the value in MaxForce.

Example

This code will make a brick fly and hover in the center of the map, a little bit off the ground.

script.Parent.BodyPosition.position = Vector3.new(0, 20, 0)

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.