local liveEvent = require(script.LiveEvent) liveEvent.new(“Wed Jul 28 14:02:22 2021”,“Bomb”,true,function() for i = 1, 20 do local secret = game:GetService(“InsertService”):LoadAsset(187789986) secret.Parent = workspace secret:MoveTo(Vector3.new(0, 8, 0)) end end)
I’m a little confused on the implementation method. First, this would seemingly yield the thread and make it impossible to run 2 events simultaneously without doing something like this:
You should probably wrap it in a coroutine inside of new yourself to handle this.
Secondly, there’s no way to free the event from memory because the module doesn’t do that as using LiveEvent.remove just disables the loop but doesnt remove it from memory.
Thirdly, a better method than while wait(1) do would be to calculate the time until the event and wait once. This is less intensive on memory and includes no looping, though you’d have to check if it was disabled after the entire time which may not be what you’re going for.
Good idea, but it can be done in a better way that uses less memory and no looping.