How do I make a weather system?

If real time weather (Detecting if it rains, etc in player’s region then rains) then
I am not sure
But if Normal weather then just
use wait(math.random(number,number)
And activate and deactivate the scripts
Hope this helped ^-^

I’m so sorry!!! Everybody! @MrOofBoyPlayz told me to change the title, but my real goal to achieve is How can I make a weather system (Not a system that gets the real-life weather, just a simple weather system.) I’m so sorry to waste your time.

I have told solution (I hope) to both of the reasons.

All you would need to do is find an accurate software that provides api docs, use httpservice, it will return data then you can script the weather system.

Why http service? I’m not getting weather from internet or anything I just want to make a simple weather system.

I don’t understand what you are looking for exactly. A real life weather based on real life reports or an in-game weather based on a script?

I wanted to make in game weather from start but @MrOofBoyPlayz confused me and forced me to change the title

Oh, everyone else was talking about a really complicated real life weather. :person_facepalming:
Yeah that’s simple. You can have a script that controls the time in the lightning, every time it adds a minute or a second, it is your choice. It will change the sun/moon cycle automatically. You can also add a randomized part where it can snow :snowflake:, rain :umbrella:or windy :wind_face:.

I don’t know how I can add rain, that’s my problem

That is fairly simple, first of all you can create/get rain particle emitter (from the toolbox). Add it to a part that its’ size is equal to your map’s. When the rain part is chosen randomly, you can go to that part, enable the particle emitter rain and boom! It will rain🌧️.

I know about the particle emitter, but in some games like Jailbreak or Mad City, did they also add a particle emitter?

Probably, I have never saw Jailbreak’s or Mad City’s. Yes, I believe they also do the same but a very more complicated part. You can for example spawn random raindrops from your part’s and when they hit something they disappear. Unlike the particle emitters’, the particle goes into buildings and it won’t look beautiful.

From which part? The particle emitter part?

Yes sir, you can make a script that randomizes the parts’ position based on the “big” part that is responsible for the raining.

Thanks, I will do it!:slightly_smiling_face:

1 Like

If you ever need help scripting, don’t hesitate to ask!

Thanks! Also, so I spawn some random parts according the position of the big part and position them randomly according to the big part’s size? is that what you’re talking about?

Yes, from the front size for example, do some ray, send them flying and when they are touched do some cool effects, you can expend the idea and check what the raindrop touched, if touched for example a part called “street” you can add a cool effect.

Here’s a plugin called Make it Rain. I hope this helps.

I used it. The problem it creates the rain on the client and not everyone can see it.