diff --git a/modules/sandbox.luau b/modules/sandbox.luau index 8b1541f..a430fbb 100644 --- a/modules/sandbox.luau +++ b/modules/sandbox.luau @@ -42,7 +42,7 @@ local function discoverAndReadScript(filePath: string): string end if fs.isFile(filePath .. "/init.lua") then - scriptContents = fs.readFile(filePath .. "init.lua") + scriptContents = fs.readFile(filePath .. "/init.lua") end end diff --git a/pages/getting-started/5-security.mdx b/pages/getting-started/5-security.mdx index 52c99ee..818ebf4 100644 --- a/pages/getting-started/5-security.mdx +++ b/pages/getting-started/5-security.mdx @@ -67,7 +67,7 @@ local function discoverAndReadScript(filePath: string): string end if fs.isFile(filePath .. "/init.lua") then - scriptContents = fs.readFile(filePath .. "init.lua") + scriptContents = fs.readFile(filePath .. "/init.lua") end end