Universal Script 📌
530 Views
564 Executions

Instance2Lua Place Saver

Universal Script 📌
FoarteBine
FoarteBine10K executions
5 months ago
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

This script serializes in-game instances into executable Luau code for dynamic replication and generation. Instructions Execute the script and wait for the process to complete. The execution time depends on the size and density of the Workspace. Once finished, the generated code will be automatically copied to your clipboard. Built with AI: Gemini 3 Flash Version: 0.1 BETA

View Raw
local Target = game:GetService("Workspace") --SELECT YOUR TARGET
local Output = "-- Generated automatically\nlocal create = Instance.new\nlocal refs = {}\n\n"

local blacklist = {
    ["TouchTransmitter"] = true,
    ["Camera"] = true,
    ["Terrain"] = true,
    ["Workspace"] = true,
    ["Status"] = true,
    ["ManualWeld"] = true,
    ["Weld"] = true,
    ["Motor6D"] = true,
    ["Snap"] = true
}

local defaultCache = {}

local function cleanValue(val)
    if typeof(val) == "string" then
        return '"' .. val .. '"'
    elseif typeof(val) == "Vector3" then
        return "Vector3.new(" .. tostring(val) .. ")"
    elseif typeof(val) == "Vector2" then
        return "Vector2.new(" .. tostring(val) .. ")"
    elseif typeof(val) == "CFrame" then
        return "CFrame.new(" .. tostring(val) .. ")"
    elseif typeof(val) == "Color3" then
        return "Color3.new(" .. tostring(val) .. ")"
    elseif typeof(val) == "BrickColor" then
        return "BrickColor.new(\"" .. tostring(val) .. "\")"
    elseif typeof(val) == "UDim2" then
        return "UDim2.new(" .. tostring(val) .. ")"
    elseif typeof(val) == "UDim" then
        return "UDim.new(" .. tostring(val) .. ")"
    elseif typeof(val) == "NumberRange" then
        return "NumberRange.new(" .. val.Min .. ", " .. val.Max .. ")"
    elseif typeof(val) == "EnumItem" then
        return tostring(val)
    elseif typeof(val) == "Instance" then
        return "nil"


Comments

1
Log in to join the conversation. Login
Looey's profile picture
Looey3 months ago(edited)

This is actually fire for mobile users

2

More universal scripts

See all
Script hub
52.8k
13.9k
Bumped 2 hours ago
Key System
Paid
Universal Script 📌
82
225
Approved 5 hours ago
Key System
Script hub
457.5k
956.8k
Bumped 5 hours ago
Key System

Script hub

Hall of Fame #5

Verified script badgeRonix Hub | 52 Supported Games + OP!