
4.6k Views
7.1k Executions
Save Game
Universal Script 📌
11 months ago · Updated
Reviewed by QueueSpeedDemonPaid revieweron How review works
Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
https://github.com/luau/UniversalSynSaveInstance and backup https://codeberg.org/phoriah/UniversalSynSaveInstance
Updates
Script edited: Update script
Script edited: Update script
--Please look is script working, original repository got deleted
local Params = {
RepoURL = "https://raw.githubusercontent.com/luau/UniversalSynSaveInstance/main/",
BackupURL = "https://codeberg.org/phoriah/UniversalSynSaveInstance/raw/branch/main/",
USSI = "saveinstance",
Extension = ".luau",
USSI_FOLDER = "ussi_cache/",
}
local Cache = Params.USSI_FOLDER .. Params.USSI .. Params.Extension
local function fetch(url)
local ok, src = pcall(game.HttpGet, game, url .. Params.USSI .. Params.Extension, true)
return ok and src and src ~= "" and loadstring(src, Params.USSI), src
end
local fn, src = fetch(Params.RepoURL)
if not fn and Params.BackupURL then
fn, src = fetch(Params.BackupURL)
end
if fn then
task.spawn(function()
pcall(makefolder, Params.USSI_FOLDER)
pcall(writefile, Cache, src)
end)
else
local ok, cached = pcall(readfile, Cache)
fn = ok and cached and cached ~= "" and loadstring(cached, Params.USSI)
end
local synsaveinstance = assert(fn, "Failed to load " .. Params.USSI)()
local Options = {} -- Documentation: https://luau.github.io/UniversalSynSaveInstance/api/UniversalSynSaveInstance | https://phoriah.codeberg.page/UniversalSynSaveInstance/api/UniversalSynSaveInstance
synsaveinstance(Options)









Making an update for script. Original repository got deleted
It dosent save the scripts js the map 💔
good and works