From aad9142df1e7049b096ac1338c2ba1d0022558a9 Mon Sep 17 00:00:00 2001 From: LuaRook Date: Tue, 26 Sep 2023 02:47:14 -0400 Subject: [PATCH] fix: fix ``IsEdit`` permissions error --- src/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/init.lua b/src/init.lua index 21949163..7730159a 100644 --- a/src/init.lua +++ b/src/init.lua @@ -4,7 +4,7 @@ if RunService:IsServer() then return require(script.KnitServer) else local KnitServer = script:FindFirstChild("KnitServer") - if KnitServer and not RunService:IsEdit() then + if KnitServer and RunService:IsRunning() then KnitServer:Destroy() end return require(script.KnitClient)