Hello! I have borrowed a script from buildthomas (Rain Plugin) and I am having an error executing the downloaded module.
In the child script, I have written the following code:
local Rain = require(script.Parent)
Rain:Enable()
Image of format shown here:
The plugin is downloaded as well as the module inserted (shown in the module script), if you want to see the plugin I downloaded from buildthomas, you can find him Here. I would appreciate it if you could give me troubleshooting tips! I have spent around 30 minutes looking in the comments of his Devforum post without any luck.
The error seems to be that it’s not executing any script, it shows the command is successfully executed, though nothing visually happens. I have tried launching as a player, though the rain still doesn’t appear.
Here is the output as well as visual (Code that enables rain is shown Script ‘ServerScriptService.Rain.Test’, Line 2 - Studio - Test:2):
Looks like this module needs to run on the client, hence the error which says “RenderStepped event can only be used from local scripts”. Try moving the module inside StarterGui, then changing your Script that calls it into a LocalScript. This should solve your issue.
That worked! I can’t believe my brain died over something so easy (you should look at the mess in my other post that was solved ). Thanks for the help!