Skip to content

This can help with rotating around an object in roblox lua.

Notifications You must be signed in to change notification settings

YbicG/OrbitModule

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 

Repository files navigation

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".		

About

This can help with rotating around an object in roblox lua.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages