From 1a630a5baae2a6eb673e7ce3a1d30623ef7f87a1 Mon Sep 17 00:00:00 2001 From: Bl4ise <168727017+Bl4ise@users.noreply.github.com> Date: Thu, 2 May 2024 20:51:34 +0200 Subject: [PATCH] Update Event.luau --- src/Index/Event.luau | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()