So I am using a module (BTrees 3.0) which creates other module scripts under the name “task” and by change the module from task = {} return task to anything else, the module doesn’t work. Because of this, it overlaps with the use of Roblox’s task library like task.wait or task.delay and i was wondering if there was an alternative way of accessing it like through a service? Thanks for the help.
You can try to rename roblox task library in a different variable like so:
local robloxTask = roblox.task
local task = {}
Yep! Just redefining the library before defining the module worked out!
For future, this is what I did
local TaskLibrary = task
task = {}
--// anything that would be task.action can now be used as TaskLibrary.Action for example...
TaskLibrary.delay(2, function()
print("Fixed!")
end)
return task
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.