MoveUntilCollide||doc136426

September 20, 2022

Format

BasePart:MoveUntilCollide(displacement, worldSpace)

Describe

Move according to the collision and stop when the collision occurs. By default, it moves according to its own coordinate axis. You can choose to move according to the world coordinate axis.

parameter

Variable name Type Describe
displacement Vector3 Direction vector of movement
worldSpace bool Whether to move with the world coordinate axis. The default is false