Rain Module + Plugin

Very amazing plugin, very helpful for my projects. I did have a question (I apologize if it was asked before), how would I make the rain serversided? I have seen it used in games but I’m a bit confused. I tried to make it so that when the remote event is fired it would connect locally, and then it would fire to the server but the logic didn’t make sense. I tried to find any solutions in this topic. Let me know.

I think you aren’t trying to ask “how do I make the rain server-sided?” but “how do I make sure whether it rains or not is consistent between all clients?”. Running the rain server-sided makes no sense because this is a visual effect that should run on the client.

You can achieve this by sending messages to each client to turn on/off the rain via RemoteEvents.

I recommend posting in #help-and-feedback:scripting-support to get support for dealing with remote event handling like this since that is not within scope of the library.

1 Like

Can you give me a better example of how to enable the rain in a script?

There’s plenty of documentation here. If that’s not sufficient for you, ask in #help-and-feedback:scripting-support. Replicating on/off messages to client is not in scope of the module as mentioned several times before. (please respect my time and read previous posts before replying)

1 Like

Rain particles go through non-transparent parts when a character is standing out in the open.

Can you provide a self-contained repro file that demonstrates the problem? Have you read through prior responses in the thread / tuned the module to better suit your use case?

1 Like

File:
rain issue.rbxl (70.0 KB)

As for fine tuning the settings, I’m not exactly too sure as to what to change.

Rain also tends to clip through the ceiling when your camera is right below the “roof”

1 Like

Could you explain how this works?

@buildthomas Any fixes in the works for this? My game is also being affected and has been for a while.

I don’t think this is a new issue. If you want you can investigate and submit a fix you think makes sense to the GitHub repository so I can merge and others can benefit. I don’t have time to look into this myself at the moment.

2 Likes

This is awesome!! but may i know where to put the module?

That doesn’t matter as long as the client has access to it. The module in itself doesn’t do anything and has to be invoked on the client.

If you are a non-technical user, use the plugin instead of the module itself, or use #help-and-feedback:scripting-support for help. What you’re asking about is out of scope for this thread.

1 Like

Hey there, I keep getting this error after my character respawns whilst its raining. any suggestions on how to fix?

Error: RainStraight is not a valid member of Part “__RainEmitter”

Can you provide a repro file? Thanks.

Hi! The rain is script is actually very laggy and showing 4% in script activty. Is this expected behavior?
image
During cut scenes, the rain begins to seriously lag. I am using the rain script at the highest intensity ratio, with a 0.75 speed ratio and respect can collide on.

Are you seeing performance impact you feel you need to optimize for? Obviously, this effect cannot run for free, it is doing a lot of calculations and moving particle emitters around.

Same as above, please send me a repro file if you want me to take a closer look.

Hi, is there a way to make it rain on specific parts, not the player’s camera so it wouldnt rain everywhere? I tried it by myself, but it’s not working properly and it’s offset of where I want it to rain.

This module is designed to make it rain around the player. You could add invisible ceiling to fake the rain only being in specific areas. That’s probably much easier than re-designing the module. I cannot give you any support for re-designing the module.

Could you just have something like Zoneplus turn on and off the module when it hits parts you want it to rain in? and off , if not in that zone?

Make sure the RainEmitter part within the camera isn’t getting destroyed by some other script. I ran into this issue with ACS, and therefore you need to ensure that systems, such as ACS, don’t destroy the RainEmitter part.