i won’t stop having this error for some reason:
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
boatbomber
(Zack_Ovits)
#65
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
squigIet
(shrimp)
#67
wow!!! i love this might use it in a game
1 Like
arshawnaa
(s24b)
#68
How do I activate the rain and screen distortion? Sorry if this is obvious, I am new to this.
2 Likes
WizardBrand
(TheWizardBrand)
#69
Anyone have an asset link as physical demonstration?
I see no video, that don’t exist or private
1 Like
boatbomber
(Zack_Ovits)
#71
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