I’ll need you to provide a small example place that shows that it doesn’t work as you expect, then I can either see if it’s actually the module being wrong or that your expectation of how the API works is incorrect. A full-blown game that I don’t have edit access to doesn’t really help.
Ok I’ll send you an example later
Thank you, this is very nice of you; I’m just curious, how long did it take for you to make the module?
Ok I have made a demo place. If you walk under the slightly transparent part, it doesn’t block rain.
rainbrokendemo.rbxl (32.3 KB)
The roof doesn’t seem high or thick enough (either or). You can manipulate the parameters at the top of the module to accommodate for this, or just use a higher/thicker roof. If I move the part up in Studio the rain is definitely blocked – it’s hard to see in this example because of how small (in width) the roof is and because it is transparent.
Oh thanks, which parameters do I change?
Edit: I decreased RAIN_OCCLUDECHECK_OFFSET_XZ_MIN to -800 and it seems to be working better now. (A little bit still enters buildings)
I simply just love this plugin make’s my game to look more reaslistic.
Would this work in a tunnel or would the module ignore the semi-sheltered environment?
Hard to say what you mean, I suggest just trying it out.
First of all, buildthomas, I congratulate you on your rain plugin. I have used it and I think that it gives a very realistic and subtle rain effect. I think that the inclusion of different weather systems really enhances the gameplay of the build that my friend and I am currently working on.
This is a screenshot of the riverside of the 1867-themed game that cyberpiper and myself are currently building. Your rain effect really has enhanced the ambiance of this build and I thank you for sharing it with the Roblox community.
I’m a bad scripter:
How can I enable and disable rain for all players with a command run by someone of a specific rank in a group? I’ve figured the group ranking part out, but I need help with fetching the rain module for all players.
Send a message to each client via a remote that they should turn off the rain. You can’t get a reference to the rain module on the server-side, since the rain is only client-side.
I see, thank you for your reply. Even though I’m not a great scripter, I’ll try and teach myself with trial and error lol
Ok, new problem: I got it to work, but whenever a new player joins, it’s not raining for them when it should be. How can I fix this?
You provide no single detail whatsoever on the work you have done, so I can’t help you, and this is also not the place to discuss issues outside of the scope of the module. Please use the #help-and-feedback:scripting-support category and follow the format there so that someone can help out.
Very cool! Thank you for providing this
My showcase was lacking a bit of life to the build, and this goes perfectly with the ambiance I want!
Thank you so much!
With this rain script, I have further customized it to be able to be enabled by a command, also being linked to the daylight cycle system, and I rebuilt the sound system to further make it more reliable.
Thank you
If anyone makes any improvements to this module that you think others can benefit from, (i.e. core functionality, not stuff you can achieve through the existing API surface) please do remember to submit them to the Github repo as pull requests.
Excuse me, can you write an example of tweening intensityRatio? I don’t know how to tween these values.
Test script that shows how it works:
local Rain = require(path.to.rain.module) -- TODO
Rain:Enable()
wait(1)
-- no tweening, instant change:
Rain:SetIntensityRatio(0.25)
wait(1)
-- tweening over 2 seconds back to full intensity:
Rain:SetIntensityRatio(1, TweenInfo.new(2))