Here is my script

local Rain = game.Workspace.Weather.RainArea.ParticleEmitter
local Snow = game.Workspace.Weather.SnowArea.ParticleEmitter
local RainSky = game.ServerStorage.Rain
local Clone = RainSky:Clone()

function rainOn()
	Rain.Enabled = true
	game.Workspace.Sound:Play()
	Clone.Parent = game.Lighting
	print("Rain Turned On")
end

function rainOff()
	Rain.Enabled = false
	game.Workspace.Sound:Stop()
	Clone:Destroy()
	print("Rain Turned Off")
end

function snowOn()
	Snow.Enabled = true
end

function snowOff()
	Snow.Enabled = false
end

repeat
	rainOn()
	print("Currently Raining")
	wait(300)
	print("No longer raining")
	rainOff()
	wait(1800)
until game.Workspace.Weather.WeatherEmabled == false

9 comments

0

I think you need to play the sound on the client ... i think

0

Where is that?

0

Why is the clone going in Lighting? Lighting is not meant for storage.

0

Its a sky

0

if your question is where is the client .. then my question to you is, do you know what filtering enabled is?

0

Just to clarify, this a normal script in workspace, correct? If it is, make sure your sounds are also in workspace. (They can be played across the server if called on the server)

0

Yeah its in workspace

0

And its a normal script

0

I just updated what my script is now