Build and Survive! Classic
15.7k Views
1.4k Executions

Save Load Source Kevin 2AreYouMental110 Thanks

Build and Survive! Classic
kevinmitnickhkr
kevinmitnickhkr10 followers
2 years ago
Please login to perform these actions:

Save Load Source Kevin 2AreYouMental110 Thanks is a Build and Survive! Classic script for Roblox, uploaded to ScriptBlox on Oct 19, 2024.

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Save and load builds save server builds

View Raw
-- please don't skid and credits if you're gonna use a code credit 2AreYouMental110 and me credit if gonna showcase.

getgenv().deletewhendupefound = false
local lib = loadstring(game:HttpGet("https://pastebin.com/raw/A2Wf3WVh"))()
lib.makelib("Build Save/Load -:- 2AreYouMental110")
local save = lib.maketab("Save Builds")
local localplr = game.Players.LocalPlayer

local http = game:GetService("HttpService")
local starterui = game:GetService("StarterGui")
local savebuildname = "Untitled"
local savebuildnames = {}
local textbox

textbox = lib.maketextbox("Build Name", save, function(txt)
    savebuildname = txt
    textbox.Text = ""
    textbox.PlaceholderText = "Successfully Named Build"
    wait(1)
    textbox.PlaceholderText = "Set Build Name"
end)

local selectedbuild = nil
local builds = {}
local builddropdown

function updatedropdown()
    local names = {}
    for i, v in pairs(builds) do
        table.insert(names, i)
    end
    lib.updatedropdown(builddropdown, names)
    writefile("buildandsurvivebuilds.txt", http:JSONEncode(builds))
    writefile("buildandsurvivebuildsnames.txt", http:JSONEncode(savebuildnames))
end

pcall(function()
    builds = http:JSONDecode(readfile("buildandsurvivebuilds.txt"))
end)



Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!