Rain plugin not enabling

hello, I am using this plugin: Rain Plugin - Roblox
and I always get this error when trying to enable it

RenderStepped event can only be used from local scripts - Server - Rain:425

I have never used this plugin before so It’s probably something simple to do with my code, my code:

local Rain = require(game:GetService(“ServerScriptService”).Rain)

Rain:Enable()

this is one of my first times using module scripts

It might be that the module requires you to require the code inside of a local script instead of a server script, try that

Also this isn’t much of a scripting problem since its about a plugin so we can’t really help you here.

1 Like

Move the module to the ReplicatedStorage folder and try the same code there with the reference slightly changed. And also wait for the ModuleScript to replicate (load) before requiring it.

local Rain = require(game:GetService("ReplicatedStorage"):WaitForChild("Rain"))

Rain:Enable()