Hi, I am attempting to recreate a day/night cycle that is timed, with an interval of 300 seconds between the day and night cycle. Considering my game is ‘cartoon-like’ the Roblox skybox is not optimal for the setting the game features. I have a day skybox and night skybox, and I am just looking for the proper way to code a smooth transition from day to night within the interval, precisely. TIA
1 Like
well what does your sky boxes look like. because you might be able to make it a bit smoother with having multiple different skyboxes with a gradient change in the images to make it seem like it is transitioning
for example like a gradient like
and on the code side you could setup a fuction that loops it self with the time fram you want
function repeat1()
wait(1)
Workspace.part1.BrickColor = BrickColor.Red()
wait(1)
Workspace.part1.BrickColor = BrickColor.Green()
wait(1)
Workspace.part1.BrickColor = BrickColor.Yellow()
wait(1)
Workspace.part1.BrickColor = BrickColor.Red()
wait(1)
repeat1()
end
1 Like