After realizing using an individual script for each orbiting object was inefficient, hard to work with and just a bad method, I decided to wrap it into a model for ease of use.
Link: https://create.roblox.com/store/asset/17140441342/Planetary-Orbiting-Module
Reasons to use this:
-
Customizability:
Orbits have almost all factors customizable:
Distance, Speed, Eclipse, and Orbit Rotation -
Error Proof:
The Module was made with input errors in mind, so it has a warning to deal with most of the
problems that could occur -
Ease of use:
The Module is pretty simple, and despite that the explanations in the module instructions are
still in-depth and thorough.
I will go over a brief explanation of how it works:
To create an orbit, you use Module.New(config, “Key”)
config being the list of custom variables, and key being the key you refer to the orbit as
To edit an orbit, you use Module.Update(config, “Key”),
and to delete an orbit, you use Module.Delete(“Key”).
Enjoy