Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Using require(), I keep getting an error?

How exactly do I use require?

The script in ServerScriptService has this code in it:

local module = require(2293721179)
module.Parent = game.ReplicatedStorage


while true do
        wait(.6)
	module.heck()
end

and my module has this in it:

local module = {}


module.heck = function()
	for i,v in pairs(game:GetDescendants()) do
		print(v)
	end
end

return module

I thought this would work but it keeps giving the error:

unable to find module asset id even though the asset id is correct?? How do I fix this...

Thanks in advance for any help.

2 comments

0

local module = require("2293721179")?

0

no

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.