This weather system includes almost everything you would need for a normal weather system. Here they are:
Lightning
Lightning is randomly generated across the map every few seconds. If lightning does strike you, it will kill you. Lightning also spawns a fire at the point of where it hit. The fire will damage you the closer you get to it. Fires also despawn after some time.
Rain is made by a part being placed over the player’s head, with a particle emitter locally. Rain will start/end smoothly as the weather changes.
Smooth transitions
When the weather changes, the lighting, audio, and rain smoothly transition into what they need to be according to the weather. There are 2 types of lighting. Lighting for rain, and lighting for daytime. You can change these to fit your liking.
Im playing the game right now, the weather system is awesome. I have 2 recommendations though, it gets a bit too blue when it rains, its a nice detail but its a bit too strong. Another thing is that the shake from the thunder is a bit too smooth or slow. Id recommend making it more sharp or stronger.
Wow, this is beautiful. Love the sounds and sky and ambiance lighting as the weather changes. Just a quick question. Is it possible (or what would I change) to adjust hot often and how long a storm happens? For instance they come and go to often and so quick. I was hoping to make it happen less often but last longer when it does come. Thank you!
You would first open the weather module inside serverscriptservice.
You should then see this at the top of the script.
To change how long the day lasts, edit those numbers inside of the DayTimes table. For example if you would want it to last 2 minutes, put 120 for both of them. Same with the RainTimes.
Here, the day will last for 2 minutes before changing to rain.
If you want it to be random, as in the day and rain last a random amount of time, you would put the MinTime as the lowest possible time, and the MaxTime as the most time.
For example here, the day will last anywhere from a minute, to 2 minutes. (It will randomly pick a number.)
hi sorry for asking but how would i change the sound of day time and sound of the rain? i tried looking in all the scripts. also where are those scripts for the lightning?
Decided to update this system and add something cool.
Added a lightning strike command, which allows you to lightning strike anyone in the server. Just type the command below in chat with ‘PlayerName’ being the name of your victim.
/Strike PlayerName
In the current game, everyone has permissions to strike anyone. However you can edit the script to add and remove people who you want to have these commands. To activate this, simply delete the part that says
table.insert(AllowedUsers,Player.Name)
If someone is striking you too much, you can always play in the studio version.