Skip to content

Latest commit

 

History

History
57 lines (45 loc) · 2.24 KB

README.md

File metadata and controls

57 lines (45 loc) · 2.24 KB

OrbitModule

This can help with rotating around an object. Download the module from here or https://create.roblox.com/marketplace/asset/11922367711/OrbitModule.

Scripts:

Clockwise Script:

image

Counterclockwise Script:

image

Result:

1226.mp4

FUNCTIONS

CircularOrbit - Orbits a position in a circular movement.

PARAMETERS

Part -> Part to be rotated.
Time -> Time until completion.
Speed -> Speed at which to rotate at.
Radius -> The size to make the cirle.
RotateAroundPos -> Position for Part to rotate around.
OrbitDirection -> Direction to rotate in. Valid Directions are "clockwise" and "counterclockwise".
isSpiraling -> If true move in a spiral.
SpiralWidth -> Width between spirals.

TriangularOrbit - Orbits a position in a triangular movement.

PARAMETERS

Part -> Part to be rotated.
Time -> Time until completion.
Width -> Size to make the triangle. Roughly equivalent to a radius of a circle.
RotateAroundPos -> Position for Part to rotate around.
Speed -> Speed at which to rotate.
OrbitDirection -> Direction to rotate in. Valid Directions are "clockwise" and "counterclockwise".

RectangularOrbit - Orbits a position in a rectangular movement.

PARAMETERS

Part -> Part to be rotated.
Time -> Time until completion.
Width -> Size to make the rectangle. Roughly equivalent to a radius of a circle.
RotateAroundPos -> Position for Part to rotate around.
Speed -> Speed at which to rotate.
OrbitDirection -> Direction to rotate in. Valid Directions are "clockwise" and "counterclockwise".

SquareOrbit - Orbits a position in a square movement.

PARAMETERS

Part -> Part to be rotated.
Time -> Time until completion.
Width -> Size to make the square. Roughly equivalent to a radius of a circle.
RotateAroundPos -> Position for Part to rotate around.
Speed -> Speed at which to rotate.
OrbitDirection -> Direction to rotate in. Valid Directions are "clockwise" and "counterclockwise".