random creation
Key RequiredUniversal

random creation

Universal Scriptfqcbfqcb 325 views 28 executesUpdated May 14, 2026
Unrated
00
Lua Script•151 lines (4482 chars)
local p = game:GetService("Players")
local lp = p.LocalPlayer
while not lp do
    task.wait()
    lp = p.LocalPlayer
end

local m = lp:GetMouse()
local s = nil
local e = false

local g = Instance.new("ScreenGui")
g.Name = "Internal_Customizer"
g.ResetOnSpawn = false

local function set_parent(obj)
    local success, _ = pcall(function()
        if gethui then
            obj.Parent = gethui()
        else
            obj.Parent = game:GetService("CoreGui")
        end
    end)
    if not success then
        obj.Parent = lp:WaitForChild("PlayerGui")
    end
end
set_parent(g)

local f = Instance.new("Frame", g)
f.Size = UDim2.new(0, 220, 0, 320)
f.Position = UDim2.new(0, 50, 0.5, -160)
f.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
f.BorderSizePixel = 0
f.Active = true
f.Draggable = true
Instance.new("UICorner", f).CornerRadius = UDim.new(0, 6)

local t = Instance.new("TextLabel", f)
t.Size = UDim2.new(1, 0, 0, 30)
t.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
t.Text = "i was bored so i made this"
t.TextColor3 = Color3.new(1, 1, 1)
t.Font = Enum.Font.GothamBold
t.TextSize = 14
Instance.new("UICorner", t).CornerRadius = UDim.new(0, 6)

local function create_box(py, ph)
    local b = Instance.new("TextBox", f)
    b.Size = UDim2.new(0.9, 0, 0, 30)
    b.Position = UDim2.new(0.05, 0, 0, py)
    b.PlaceholderText = ph
    b.Text = ""
    b.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
    b.TextColor3 = Color3.new(1, 1, 1)
    b.Font = Enum.Font.Gotham
    b.TextSize = 12
    Instance.new("UICorner", b).CornerRadius = UDim.new(0, 4)
    return b
end

local function create_btn(py, txt, clr)
    local b = Instance.new("TextButton", f)
    b.Size = UDim2.new(0.9, 0, 0, 30)
    b.Position = UDim2.new(0.05, 0, 0, py)
    b.Text = txt
    b.BackgroundColor3 = clr
    b.TextColor3 = Color3.new(1, 1, 1)
    b.Font = Enum.Font.GothamSemibold
    b.TextSize = 12
    Instance.new("UICorner", b).CornerRadius = UDim.new(0, 4)
    return b
end

local sky_id = create_box(40, "Image/decal ID")
local sky_btn = create_btn(75, "Apply", Color3.fromRGB(0, 120, 215))

sky_btn.MouseButton1Click:Connect(function()
    local id = "rbxassetid://" .. sky_id.Text:match("%d+")
    local l = game:GetService("Lighting")
    local sk = l:FindFirstChildOfClass("Sky") or Instance.new("Sky", l)
    sk.SkyboxBk = id sk.SkyboxDn = id sk.SkyboxFt = id 
    sk.SkyboxLf = id sk.SkyboxRt = id sk.SkyboxUp = id
end)

local sel_btn = create_btn(115, "part selector: off", Color3.fromRGB(180, 50, 50))
local hl = Instance.new("Highlight")
hl.FillTransparency = 0.5
hl.OutlineColor = Color3.new(1, 1, 1)

sel_btn.MouseButton1Click:Connect(function()
    e = not e
    sel_btn.Text = e and "part selector: ON" or "part selector: off"
    sel_btn.BackgroundColor3 = e and Color3.fromRGB(50, 160, 50) or Color3.fromRGB(180, 50, 50)
    if not e then hl.Parent = nil s = nil end
end)

m.Button1Down:Connect(function()
    if e and m.Target then
        s = m.Target
        hl.Parent = s
    end
end)

local dec_id = create_box(155, "Decal Asset ID")
local dec_btn = create_btn(190, "Apply Decal (All Sides)", Color3.fromRGB(0, 120, 215))

dec_btn.MouseButton1Click:Connect(function()
    if s and dec_id.Text:match("%d+") then
        local id = "rbxassetid://" .. dec_id.Text:match("%d+")
        for _, v in ipairs(Enum.NormalId:GetEnumItems()) do
            local d = Instance.new("Decal", s)
            d.Texture = id
            d.Face = v
        end
    end
end)

local pf = Instance.new("Frame", f)
pf.Size = UDim2.new(0.9, 0, 0, 30)
pf.Position = UDim2.new(0.05, 0, 0, 230)
pf.BackgroundTransparency = 1

local function part_btn(txt, x, class)
    local b = Instance.new("TextButton", pf)
    b.Size = UDim2.new(0.3, 0, 1, 0)
    b.Position = UDim2.new(x, 0, 0, 0)
    b.Text = txt
    b.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
    b.TextColor3 = Color3.new(1, 1, 1)
    b.TextSize = 10
    Instance.new("UICorner", b)
    b.MouseButton1Click:Connect(function()
        if s then Instance.new(class, s) end
    end)
end

part_btn("Fire", 0, "Fire")
part_btn("Smoke", 0.35, "Smoke")
part_btn("Sparkles", 0.7, "Sparkles")

local clr_btn = create_btn(270, "Clear Selected Part", Color3.fromRGB(100, 100, 100))
clr_btn.MouseButton1Click:Connect(function()
    if s then
        for _, v in ipairs(s:GetChildren()) do
            if v:IsA("Fire") or v:IsA("Smoke") or v:IsA("Sparkles") or v:IsA("Decal") then
                v:Destroy()
            end
        end
    end
end)

Features & Information

not writing features. couldn't be bothered to make it a loadstring enjoy lads

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts