of     1   

doctor152
#183747782Tuesday, February 16, 2016 11:19 AM GMT

I'm currently having an issue where I can't seem to return and use a table from a modulescript used in a script. I get these errors: Module code did not return exactly one value Requested module experienced an error while loading The line I'm using to get the modulescript is: module = require(script.Parent.item) Any help? Thanks.
Wrathsong
#183748089Tuesday, February 16, 2016 11:33 AM GMT

i think it's pretty clear you module didn't return exactly one value. code?
doctor152
#183748198Tuesday, February 16, 2016 11:39 AM GMT

Modulescript: itemVal = {} itemVal.ItemTy = itemType itemVal.ItemNa = itemDec return itemVal ------------------------------------------------------------------ Script: module = require(script.Parent.HelmetCrateList1) script.Parent.ClickDetector.MouseClick:connect(function(click) IT = module.ItemTy end)
doctor152
#183748470Tuesday, February 16, 2016 11:54 AM GMT

Bump
doctor152
#183748850Tuesday, February 16, 2016 12:12 PM GMT

Bump[2]
vlekje513
#183748881Tuesday, February 16, 2016 12:13 PM GMT

try ItemVal["ItemName"] = "swiggity"
doctor152
#183748950Tuesday, February 16, 2016 12:16 PM GMT

Nope, doesn't work.
doctor152
#183749057Tuesday, February 16, 2016 12:20 PM GMT

Nevermind, I fixed it. Thanks anyway.
vlekje513
#183749202Tuesday, February 16, 2016 12:25 PM GMT

What was the fix?
doctor152
#183749219Tuesday, February 16, 2016 12:25 PM GMT

Earlier down in the script I used a return to end a loop rather than a break, my mistake.

    of     1