Hello everyone
i have small questions like how i can make the module script return me the values many time not just once?
like is there way that i can make that?
Hello everyone
i have small questions like how i can make the module script return me the values many time not just once?
like is there way that i can make that?
i think so, you can use a loop to get as many values as you want.
example:
local module = require(script.Module)
for i = 1,10 do
print(module.Test())
end
but i don’t think use loop with module it’s good idea… that will make lag
like i’m making a backpack module system so i just want turn it once and it’s return me back the values about if there new tools or there tools has been deleted
i’m trying to make my module script clean and simple
nvm i found way how i can make that without using loop
Module:
local module = {}
do
local Content = module
Content.Skip = {}
function Content:Start()
while wait(1) do
Content.Skip()
end
end
end
return {
module = module
}
script:
local A = require(game.ReplicatedStorage.ModuleScript)
A.module.Skip = function()
print("Hi")
end
A.module:Start()
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.