while true do local B=game.Players.LocalPlayer local T=script.RainSound wait(math.random(10,20))local U=game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101")local c=game.Workspace.Terrain.Clouds local O={}O.Density=1 O.Cover=1 T:Play()local n=TweenInfo.new(5)local R=U:Create(c,n,O)R:Play()B.PlayerGui.Rain.Disabled=false wait(math.random(10,10))local t=game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101")local q=game.Workspace.Terrain.Clouds local V={}V.Density=1 V.Cover=.5 T:Stop()local j=TweenInfo.new(5)local m=t:Create(q,j,V)m:Play()B.PlayerGui.Rain.Disabled=true end


while true do
	local player = game.Players.LocalPlayer
	local sound = script.RainSound
	wait(math.random(10,20))

	local TweenService = game:GetService("TweenService")

	local part = game.Workspace. Terrain.Clouds

	local goal = {}
	goal.Density = 1
	--change this to how dense you want the clouds to be
	goal.Cover = 1
	--change this to how much the clouds cover the sky
	sound:Play()
	local tweenInfo = TweenInfo.new(5)
	--change the 5 to how long you want the transition to happen

	local tween = TweenService:Create(part, tweenInfo, goal)

	tween:Play()
	player.PlayerGui.Rain.Disabled = false
	wait(math.random(10,10))
	local TweenService = game:GetService("TweenService")

	local part = game.Workspace. Terrain.Clouds

	local goal = {}
	goal.Density = 1
	--change this to how dense you want the clouds to be
	goal.Cover = 0.5
	--change this to how much the clouds cover the sky
	sound:Stop()
	local tweenInfo = TweenInfo.new(5)
	--change the 5 to how long you want the transition to happen

	local tween = TweenService:Create(part, tweenInfo, goal)

	tween:Play()
	player.PlayerGui.Rain.Disabled = true
end

