Error with cloud density script

I had created this simple clouds script which is supposed to add the cover of the clouds until it reaches 0.8, and then print finished. There is no errors in the output as well. Please help.

repeat
	game.Workspace.Terrain.Clouds.Cover += 0.005
	wait(0.1)
until game.Workspace.Terrain.Clouds.Cover == 0.8
print("finished")
1 Like

nvm i found out the answer. Don’t bother posting on this page now.

1 Like

By any chance mind sharing your solution, I am having issues changing cloud density as well.

1 Like
repeat
	game.Workspace.Terrain.Clouds.Cover += 0.005
	wait(0.1)
until game.Workspace.Terrain.Clouds.Cover >= 0.8
game.Workspace.Terrain.Clouds.Cover = 0.8
print("finished")

I figured out it slightly goes higher than 0.8, so it will keep adding on the cover since it never exactly was 0.8. Simply make the script check if it is higher than 0.8.

How were you able to even get the clouds to be called in a script? I can never get it to work.

I put this script in ServerScriptService. A common mistake you might actually be doing is putting the clouds inside of lighting. For some intellectual reason I will never know, you have to place the clouds in terrain, which is inside of workspace. If it is still not working, go on the article about dynamic clouds and see if there is any problems you might be having there: Dynamic Clouds. Hope this helps!

Yeah, have mine in Terrain, off to the article I go, thanks anyways.