Require Not Working For Some Reason?

Please don’t respond to me, I was just being stupid.

Attempted to call require with invalid argument(s).
This is an error I got when I used require for a ModuleScript.

The module is inside of ReplicatedStorage, I checked and made sure.

local RS = game:GetService("ReplicatedStorage")

local Money = require(RS.Money).new(script.Parent)
Money:Init()

I REALLY do not want to copy and paste the module inside every script, so please do not recommend that.

Oh my gosh I’m so dumb, I have a value named “Money” inside of ReplicatedStorage.

1 Like