Rain Module + Plugin

Don’t you mean to say “no rain in places that are blocked by parts”?

3 Likes

Wow, this is great!

4 Likes

I rewrote the sentence, thanks

4 Likes

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.

4 Likes

okay! thanks, now I should get it to work!

3 Likes

How would you manually turn if off and on in a game?

2 Likes
local rain = require(path.to.module)
rain:Enable() -- enabled the rain
wait(10)
rain:Disable() -- disable the rain

you can play around with that.

10 Likes

What if I wanted to do it from the plugin though?

2 Likes

You can’t. I just tried this, you have to do it from a LocalScript using the module.

3 Likes

oh you can’t do that, you need the module.

1 Like

Ah. I’ll make my own GUI where it can be disabled and enabled.

1 Like

When I use the :disable() command what do I put in the brackets?

1 Like

See the API documentation.

3 Likes

Why won’t the “:Disable()” function completely disable the rain? I still hear the sound and see a few particles.

1 Like

then the problem is on your end, because I never experience that.

1 Like

Some bits of rain still go through roofs with cancollide enabled, what do I do to prevent this?

2 Likes

Make the roofs thicker or adjust the relevant constants in the module

2 Likes
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?

3 Likes

Can’t reproduce with this code, please add an example place. Seems to work fine.

2 Likes

It still rains in places like the mall. I tried making a huge ceiling above the mall but it still wont work

2 Likes