Make clouds disappear after a certain time, then reappear at another

You can write your topic however you want, but you need to answer these questions:

  1. **What do you want to achieve?**I want to have white clouds covering the sky during the day, but when it hits a certain time, let’s say 7:00 PM, the clouds slowly start fading away, until like 8:30 PM when the clouds are fully gone. Simply put, from 7 pm to 8:30, the clouds “cover” property goes from 0.615 to 0, and from 6:30 AM to 7:00 AM, they do the opposite, from 0 to 0.615.

  2. What is the issue? Currently, clouds at night continue being white which is extremely ugly and disgusting to look at.

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub? yes, i found a script that changed the color of it, but it didnt look quite good and wasnt the one i wanted, i want the cover to change, not color.

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

-- This is an example Lua code block

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.

Use TweenService | Roblox Creator Documentation for this.

local TweenService = game:GetService("TweenService")
local clouds = game:GetService("Lighting"):WaitForChild("Clouds") -- fix this path

-- Creates a tween  instance,            time
TweenService:Create(clouds, TweenInfo.new(60), {["Cover"] = 0}:Play()

Same example but reverting the Tween:

TweenService:Create(clouds, TweenInfo.new(60), {["Cover"] = 0.615}:Play()

Now make some if statements for when it’s around 6:30 AM to activate the 2nd tween and around 7:00 PM the first tween as well as edit the time it takes for the cover to change as I do not know how long 1 minute in game is for you.

could you go more in-depth with this? sorry but i have very little to no idea how to work with lua, or to code for that matter