Universal Script 📌
520 Views
411 Executions

Instance2Lua Place Saver

Universal Script 📌
FoarteBine
FoarteBine10K executions
4 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
1.6M
2.0M
Bumped 37 minutes ago
Key System

Script hub

#12 this week

Verified script badgeSnowy Hub 500+ Games & 25600+ Features

Script hub
268.9k
114.4k
Bumped 1 hour ago
Key System
Script hub
171.1k
1.4M
Bumped 4 hours ago
Key System
Script hub
16.5k
3.2k
Bumped 6 hours ago
Key System
Paid
Script hub
17.2k
87.3k
Bumped 6 hours ago