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

Why after calling module script after requiring it gives an error as a boolean value?

I am trying to script a pick-up thing. I have a modulescript that is for detecting a part if it's in the loot pool or not, but calling it gives "attempt to call a boolean value".

the modulescript and script is in StarterCharacterScript and I used "local lootPoolDetect = require(game.StarterPlayer.StarterCharacterScripts.pickUpModule)" to require the module

here is the script: "lootPoolDetect(target)"

also with my teamCreate friend he instead got an error for failing to load the modulescript. Really appreciate some help

(script has been solved by using an alternative method, thanks Fearen for commenting!)

1 comment

0

There is an error occurring within the ModuleCode which is compromising the return code. Please supply the ModuleScript.

1 answer

solved by using an alternative method. thanks Feahren

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