Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- It is good to know that this will slow your game loading by a significant amount. Try to use small scale planets...
- -- Add a "Script" to an object(Sun, Planet, whatever you want to be stationary)
- -- Paste the information below into that script, change values as you see fit. Keep in mind your workspace size...
- local i = 0
- local speed = 0.009 -- You can edit this...However, the current speeds are relatively easy on system memory.
- local speed2 = 0.008
- local speed3 = 0.007
- local speed4 = 0.006
- local speed5 = 0.005
- local speed6 = 0.005
- local speed7 = 0.004
- local speed8 = 0.003
- local Moonspeed = 0.05
- local Mercury = game.Workspace.Mercury --Can change to a moon...or name of your choice...dog, cat, ball, spoon, torpedo.
- local Venus = game.Workspace.Venus
- local Earth = game.Workspace.Earth
- local Moon = game.Workspace.Moon
- local Mars = game.Workspace.Mars
- local Jupiter = game.Workspace.Jupiter
- local Saturn = game.Workspace.Saturn
- local Uranus = game.Workspace.Uranus
- local Neptune = game.Workspace.Neptune
- local Sun = game.Workspace.Sun -- Can change to a planet...or name of your choosing...tree, shovel, grandma's house.
- local Mercurydistance = 200 --Distance between sun & mercury
- local Venusdistance = 400 --Distance between sun & venus
- local Earthdistance = 600 --Distance between sun & earth
- local Moondistance = 75 --Distance between earth & moon
- local Marsdistance = 1000 --Distance between sun & mars
- local Jupiterdistance = 1500 --Distance between sun & jupiter
- local Saturndistance = 2250 --Distance between sun & saturn
- local Uranusdistance = 3000 --Distance between sun & uranus
- local Neptunedistance = 3750 --Distance between sun & neptune
- while true do
- wait()
- i = i + 1
- local incline = math.rad(0) --The angle at which the object orbits
- local incline2 = math.rad(0)
- local incline3 = math.rad(0)
- local incline4 = math.rad(0)
- local incline5 = math.rad(0)
- local incline6 = math.rad(0)
- local incline7 = math.rad(0)
- local incline8 = math.rad(0)
- local Moonincline = math.rad(90)
- Mercury.CFrame = Sun.CFrame * CFrame.fromEulerAnglesXYZ(incline, i * speed, 0) * CFrame.new(0, 0, Mercurydistance)
- Venus.CFrame = Sun.CFrame * CFrame.fromEulerAnglesXYZ(incline2, i * speed2, 0) * CFrame.new(0, 0, Venusdistance)
- Earth.CFrame = Sun.CFrame * CFrame.fromEulerAnglesXYZ(incline3, i * speed3, 0) * CFrame.new(0, 0, Earthdistance)
- Moon.CFrame = Earth.CFrame * CFrame.fromEulerAnglesXYZ(Moonincline, i * Moonspeed, 0) * CFrame.new(0, 0, Moondistance)
- Mars.CFrame = Sun.CFrame * CFrame.fromEulerAnglesXYZ(incline4, i * speed4, 0) * CFrame.new(0, 0, Marsdistance)
- Jupiter.CFrame = Sun.CFrame * CFrame.fromEulerAnglesXYZ(incline5, i * speed5, 0) * CFrame.new(0, 0, Jupiterdistance)
- Saturn.CFrame = Sun.CFrame * CFrame.fromEulerAnglesXYZ(incline6, i * speed6, 0) * CFrame.new(0, 0, Saturndistance)
- Uranus.CFrame = Sun.CFrame * CFrame.fromEulerAnglesXYZ(incline7, i * speed7, 0) * CFrame.new(0, 0, Uranusdistance)
- Neptune.CFrame = Sun.CFrame * CFrame.fromEulerAnglesXYZ(incline8, i * speed8, 0) * CFrame.new(0, 0, Neptunedistance)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement