Screen Distortion Rain

i won’t stop having this error for some reason:
image

Here the script:

local RainModule = require(game.ReplicatedStorage:WaitForChild('ScreenRain'))

local Settings: {[string]: number | Color3} = {
	Rate = 5, -- Spawn rate (droplets/second)
	Size = 0.08, -- Average droplet size
	Tint = Color3.fromRGB(226, 244, 255), -- Droplet colour
	Fade = 1.5, -- Time to fade out
	UpdateFreq = 1 / 45, -- Update frequency
}

game.ReplicatedStorage.Water.OnClientEvent:Connect(function()
	local Enabled = true
	print('firedlolxd')
	RainModule.Enable(Settings)
end)

in a local script

1 Like

You must use :Enable() not .Enable().

4 Likes

yeah sorry i forgot to say that i fixed the bug sorry! i confused javascript with lua

1 Like

wow!!! i love this :slight_smile: might use it in a game

1 Like

How do I activate the rain and screen distortion? Sorry if this is obvious, I am new to this.

2 Likes

Anyone have an asset link as physical demonstration?

I see no video, that don’t exist or private :face_with_monocle:

1 Like

DevForum lost all the videos! No idea what happened there

Definitely going to use this in a game! This module is amazing.

1 Like

could you post the particle rain script?

1 Like

Hey to others using this in the future, using depth of field works really well with this, and creates a blur on the particles which is more realistic

4 Likes