Begin main functionality

This commit is contained in:
2025-09-22 15:39:09 -04:00
parent d221123739
commit 3ab4be0b67
2 changed files with 25 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
/.vscode
+24
View File
@@ -0,0 +1,24 @@
local process = require("@lune/process")
local fs = require("@lune/fs")
local roblox = require("@lune/roblox")
local args = process.args()
local fileFromArgs: string = fs.readFile(args[1])
function scanForWorkspace(model: Model): boolean
for _index, child in model:GetDescendants() do
if child:IsA("Workspace") then
return true
end
end
return false
end
function containsWorkspace(fileContents: string): boolean
local instances = roblox.deserializeModel(fileContents)
return scanForWorkspace(instances)
end
containsWorkspace(fileFromArgs)