I don't know why this isn't working, i'm trying to make the loop start when game is loaded.
local module = {}
local isLoaded = false
module.GameLoop = function()
while wait() do
if game:IsLoaded() == true then
isLoaded = true
print('Hello World')
end
end
end
module.GameLoop()
return module

1 comment
Thanks I already understand everything else about module scripts, I actually had an idea about the module script not working because it was being called in the same script but I didn't know about it very clearly.