#Client not requiring modules

1 messages · Page 1 of 1 (latest)

somber dove
#

it doesnt even error.

k is the module scripts
v is the folder containing them

game.Loaded:Once(function()  
    for _, v in script:GetChildren() do
        if v.Name ~= "Modules" then
            for _, k in v:GetChildren() do
                local Success, Result = pcall(require, k)

                if not Success then
                    warn("Failed to run module script(" .. k.Name .. "). Error: " .. Result)
                end
            end
        end
    end
end)
low isle
somber dove
#

yes

low isle
somber dove
#

for some reason it didnt run even though its enabled

dry flare
#

you are running through everything exept Modules or am i seeing something wrong

somber dove
#

i loop through every folder under the script and run every module inside them

low isle
somber dove
#

that doesnt matter

#

its just like dialog module for now

low isle
#

just checking

low isle
somber dove
#

let me try cuz i dont remember rq

#

before the game.Loaded it prints, but after it doesnt

#

let me remove game.loaded

#

ok

#

now it works

low isle
somber dove
#

i forgot how mb

viscid hollowBOT
#

studio** You are now Level 1! **studio

low isle