local x=script.Parent local g=x.Parent local u=require(g.LuauPolyfill)local e=u.Error local function Y()local x,g=pcall(function()return _G.__MOCK_FILE_SYSTEM__ or game:GetService("\070\105\108\101\083\121\115\116\101\109\083\101\114\118\105\099\101")end)if not x then error(e.new("\065\116\116\101\109\112\116\105\110\103 \116\111 \115\097\118\101 \115\110\097\112\115\104\111\116\115 \105\110 \097\110 \101\110\118\105\114\111\110\109\101\110\116 \119\104\101\114\101 \070\105\108\101\083\121\115\116\101\109\083\101\114\118\105\099\101 \105\115 \105\110\097\099\099\101\115\115\105\098\108\101\046"))end return g end return Y


local CurrentModule = script.Parent
local Packages = CurrentModule.Parent
local LuauPolyfill = require(Packages.LuauPolyfill)
local Error = LuauPolyfill.Error

local function getFileSystemService()
	local success, result = pcall(function()
		return _G.__MOCK_FILE_SYSTEM__ or game:GetService("FileSystemService")
	end)

	if not success then
		error(Error.new("Attempting to save snapshots in an environment where FileSystemService is inaccessible."))
	end

	return result
end

return getFileSystemService
