diff --git a/src/Index/Event.luau b/src/Index/Event.luau index f9ca373..66fd0a3 100644 --- a/src/Index/Event.luau +++ b/src/Index/Event.luau @@ -4,14 +4,14 @@ local Type = require(script.Parent.Type) local function createInstance(parent: Instance, name: string, class: string) if not parent:FindFirstChild(name) then - local newInstance: Instance = Instance.new(class) + local newInstance = Instance.new(class) newInstance.Name = name newInstance.Parent = parent end end local function waitForChildren(parent: Instance, childrenNames: {string}) - for _, name: string in ipairs(childrenNames) do + for _, name in ipairs(childrenNames) do task.spawn(function() repeat task.wait()