How to make the sun move with the camera, with a few caveats?

I’d like to make the sun rotate with the back of the camera, like this:
YouCanNeverSeeTheSun.rbxl (54.8 KB)

However, I’d like to make the sun’s height adjustable, so that it isn’t dark when you’re looking up.
This is as far as I’ve gotten before I’ve given up, twice: SunSpin.rbxl (64.1 KB)
Y’all can use the slider from here, I got it from the UiDragDetector documentation anyway :p

I’d also want to be able to lock the sun’s position in the sky, I think that’s possible by using :Disconnect(). (just a simple lock/unlock button)

Thanks!

1 Like

YouCanNeverSeeTheSun (1).rbxl (61.1 KB)
Here’s an updated version, but the sun’s height still isn’t locked…

Done :D
YouCanNeverSeeTheSun (1).rbxl (59.6 KB)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.