of     1   

ChocoIateOverdose
#182502452Wednesday, January 27, 2016 3:34 PM GMT

This is in a Module script, so I dont know the error... function loadfort() s=script:GetChildren() for i=1,#s,395 do for x=0,394 do s[i+x].Parent=workspace end wait() end end return loadfort() this is the script starting it: m=require(script.Parent.MainModule) m.loadfort()
direMitten
#182502731Wednesday, January 27, 2016 3:42 PM GMT

return loadfort loadfort = require(script.parent.MainModule) loadfort() You should not return the value of the function *call*, just the function itself
WoolHat
#182502741Wednesday, January 27, 2016 3:43 PM GMT

If I'm understanding this correctly, remove the 395 in your first for loop. That third argument is the step size. So if you had maybe 1000 children, the first run through the loop would set i equal to 395,the second would be 790. But I get the hunch that's not what you want.
JarodOfOrbiter
#182502766Wednesday, January 27, 2016 3:43 PM GMT

Actually, Wool, I think that is what he wants. See the second loop?
ChocoIateOverdose
#182503389Wednesday, January 27, 2016 4:03 PM GMT

Everything in there is intentional. modulescript not changed except return loadfort(), Ive done like you suggested. loadfort = require(348757778) loadfort() Still not working. Yes, the modulescript is the only thing in the model witht hat id
gskw
#182504235Wednesday, January 27, 2016 4:28 PM GMT

Did you get rid of the parenthesis on the last line of the ModuleScript?
chimmihc
#182505067Wednesday, January 27, 2016 4:52 PM GMT

Is it uploaded with the name "MainModule"?
ChocoIateOverdose
#182508578Wednesday, January 27, 2016 6:31 PM GMT

Yes, it's named MainModule. Normal script located in Workspace: loadfort = require(348757778) loadfort() ModuleScript function loadfort() s=script:GetChildren() for i=1,#s,395 do for x=0,394 do s[i+x].Parent=workspace end wait() end end return loadfort
Happywalker
#182508805Wednesday, January 27, 2016 6:37 PM GMT

module = require(348757778) module:loadfort() ModuleScript local module = {} function module:loadfort() s=script:GetChildren() for i=1,#s,395 do for x=0,394 do s[i+x].Parent=workspace end wait() end end return module
128Gigabytes
#182508866Wednesday, January 27, 2016 6:39 PM GMT

I just tested it, it works fine as far as loading the module. So your script must just not be written to do what you want.
128Gigabytes
#182508893Wednesday, January 27, 2016 6:40 PM GMT

HappyWalker all you did was needlessly put it into a table...? Modules can return any value not just tables.
Happywalker
#182509104Wednesday, January 27, 2016 6:46 PM GMT

well the other thing didn't work for him
128Gigabytes
#182509294Wednesday, January 27, 2016 6:51 PM GMT

I tested it and it works fine at requiring, he just made his script do the wrong thing

    of     1