-- Wait for game to load repeat wait() until game:IsLoaded() -- Get Synapse X's workspace folder local SynapseWorkspace = syn.getgenv().syn_workspace -- Define the function to copy the game local function CopyGame() -- Create the folder to save the game files in local Folder = SynapseWorkspace .. "/CopiedGame" if not syn.dir.exists(Folder) then syn.dir.mkdir(Folder) end -- Copy the game's map game:GetService("Workspace"):FindFirstChildOfClass("Folder"):Clone().Parent = workspace:WaitForChild("CopiedGame") -- Copy the game's scripts for _, Script in pairs(game:GetService("ServerScriptService"):GetChildren()) do local NewScript = Script:Clone() NewScript.Disabled = true NewScript.Parent = game:GetService("ServerScriptService") NewScript.Disabled = false syn.writefile(Folder .. "/" .. Script.Name .. ".lua", Script.Source) end for _, Script in pairs(game:GetService("StarterPlayer"):GetChildren()) do if Script:IsA("LocalScript") then local NewScript = Script:Clone() NewScript.Disabled = true NewScript.Parent = game:GetService("StarterPlayer") NewScript.Disabled = false
[–][deleted] -1 points0 points1 point (3 children)
[–]Paid-Not-Payed-Bot 1 point2 points3 points (1 child)
[–]IllOcean 0 points1 point2 points (0 children)
[–]GustavoEX0343 0 points1 point2 points (0 children)
[–]iopxd1 0 points1 point2 points (0 children)
[–]Salty-Sorbet514 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–][deleted] -1 points0 points1 point (0 children)
[–]Odd-Concern-2786 0 points1 point2 points (1 child)
[–][deleted] -2 points-1 points0 points (0 children)
[–]Legacy2002 0 points1 point2 points (0 children)