Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 4 years ago
Edited 4 years ago

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!)

0
There is an error occurring within the ModuleCode which is compromising the return code. Please supply the ModuleScript. Ziffixture 6913 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

solved by using an alternative method. thanks Feahren

Ad

Answer this question