Don’t you mean to say “no rain in places that are blocked by parts”?
Wow, this is great!
I rewrote the sentence, thanks
You need to use this on the client. Graphical effects commonly run on the client, not on the server, because the server doesn’t render anything.
okay! thanks, now I should get it to work!
How would you manually turn if off and on in a game?
local rain = require(path.to.module)
rain:Enable() -- enabled the rain
wait(10)
rain:Disable() -- disable the rain
you can play around with that.
What if I wanted to do it from the plugin though?
You can’t. I just tried this, you have to do it from a LocalScript using the module.
oh you can’t do that, you need the module.
Ah. I’ll make my own GUI where it can be disabled and enabled.
When I use the :disable() command what do I put in the brackets?
See the API documentation.
Why won’t the “:Disable()” function completely disable the rain? I still hear the sound and see a few particles.
then the problem is on your end, because I never experience that.
Some bits of rain still go through roofs with cancollide enabled, what do I do to prevent this?
Make the roofs thicker or adjust the relevant constants in the module
function CreateRainBlacklist()
for i,v in pairs(workspace:GetDescendants()) do
if v:IsA("Part") or v:IsA("MeshPart") or v:IsA("BasePart") or v:IsA("WedgePart") then
if v.CanCollide == false then
table.insert(RainBlacklist,v)
end
end
end
Rain:SetCollisionMode(Rain.CollisionMode.Blacklist, RainBlacklist)
end
This is how I use Rain:SetCollisionMode() but rain still seems to enter buildings, am I doing something wrong?
Can’t reproduce with this code, please add an example place. Seems to work fine.
It still rains in places like the mall. I tried making a huge ceiling above the mall but it still wont work