Universal Script 📌
4.6k Views
7.1k Executions

Save Game

Universal Script 📌
Rehoboam11
Rehoboam11First script
11 months ago · Updated

Reviewed by QueueSpeedDemonPaid revieweron How review works

Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No 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

  1. Script edited: Update script

  2. Script edited: Update script

View Raw
--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)


Comments

3
Log in to join the conversation. Login
Rehoboam11's profile picture
Rehoboam11Uploader5 days ago

Making an update for script. Original repository got deleted

1
himhimhimhimhim1222's profile picture
himhimhimhimhim12227 months ago

It dosent save the scripts js the map 💔

1
citizenzemmed's profile picture
citizenzemmed8 months ago

good and works

1

Tags

More universal scripts

See all
Script hub
202.3k
2.3M
Bumped 2 hours ago
Key System

Script hub

#20 this week

Verified script badgeAirflow HUB

Universal Script 📌
57.4k
270.2k
Bumped 3 hours ago
Key System
Script hub
2.2M
2.5M
Bumped 7 hours ago
Key System
Universal Script 📌
33.3k
479.6k
Bumped 7 hours ago
Script hub
4.0M
2.7M
Bumped 7 hours ago

Script hub

Hall of Fame #5

KeylessVerified script badge[KEYLESS] Moondiety Script | 30+ supported Games

Script hub
587
2.6k
Bumped 8 hours ago