CYBIX SCRIPT CREATOR
Key RequiredUniversal

CYBIX SCRIPT CREATOR

Universal ScriptCYBIXCYBIX 31 views 278 executesUpdated Jul 30, 2026
Unrated
00
Lua Script•442 lines (14927 chars)
-- CYBIX EXECUTOR (FULL GUI: SCRIPT DESIGN + HELP + CONSOLE + X BUTTON)

local p = game:GetService("Players").LocalPlayer
local rs = game:GetService("RunService")

local g = Instance.new("ScreenGui")
g.Name = "CybixExecFinal"
g.ResetOnSpawn = false
g.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
g.Parent = p:WaitForChild("PlayerGui")

-- MAIN FRAME
local f = Instance.new("Frame", g)
f.Size = UDim2.new(0, 560, 0, 420)
f.Position = UDim2.new(0.5, -280, 0.5, -210)
f.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
f.BorderSizePixel = 0
f.Active = true
Instance.new("UICorner", f).CornerRadius = UDim.new(0, 12)

-- RGB BACKGROUND
task.spawn(function()
    while f.Parent do
        for i = 0, 1, 0.01 do
            if not f.Parent then break end
            f.BackgroundColor3 = Color3.fromHSV(i, 0.7, 0.9)
            task.wait(0.03)
        end
    end
end)

-- HEADER
local h = Instance.new("Frame", f)
h.Size = UDim2.new(1, 0, 0, 40)
h.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
h.BorderSizePixel = 0
Instance.new("UICorner", h).CornerRadius = UDim.new(0, 12)

local title = Instance.new("TextLabel", h)
title.Size = UDim2.new(1, -60, 1, 0)
title.Position = UDim2.new(0, 10, 0, 0)
title.BackgroundTransparency = 1
title.Text = "CYBIX SCRIPT DESIGNER (XENO)"
title.TextColor3 = Color3.fromRGB(255, 255, 255)
title.Font = Enum.Font.GothamBold
title.TextScaled = true

-- X BUTTON
local x = Instance.new("TextButton", h)
x.Size = UDim2.new(0, 40, 0, 28)
x.Position = UDim2.new(1, -50, 0.5, -14)
x.BackgroundColor3 = Color3.fromRGB(160, 40, 40)
x.Text = "X"
x.TextColor3 = Color3.fromRGB(255, 255, 255)
x.Font = Enum.Font.GothamBold
x.TextScaled = true
x.BorderSizePixel = 0
Instance.new("UICorner", x).CornerRadius = UDim.new(0, 8)
x.MouseButton1Click:Connect(function()
    g:Destroy()
end)

-- DRAGGING
do
    local dragging, dragInput, dragStart, startPos
    h.InputBegan:Connect(function(input)
        if input.UserInputType == Enum.UserInputType.MouseButton1 then
            dragging = true
            dragStart = input.Position
            startPos = f.Position
            input.Changed:Connect(function()
                if input.UserInputState == Enum.UserInputState.End then
                    dragging = false
                end
            end)
        end
    end)

    h.InputChanged:Connect(function(input)
        if input.UserInputType == Enum.UserInputType.MouseMovement then
            dragInput = input
        end
    end)

    rs.RenderStepped:Connect(function()
        if dragging and dragInput then
            local delta = dragInput.Position - dragStart
            f.Position = UDim2.new(
                startPos.X.Scale,
                startPos.X.Offset + delta.X,
                startPos.Y.Scale,
                startPos.Y.Offset + delta.Y
            )
        end
    end)
end

-- SIDEBAR
local sidebar = Instance.new("Frame", f)
sidebar.Size = UDim2.new(0, 120, 1, -40)
sidebar.Position = UDim2.new(0, 0, 0, 40)
sidebar.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
sidebar.BorderSizePixel = 0
Instance.new("UICorner", sidebar).CornerRadius = UDim.new(0, 10)

local sLayout = Instance.new("UIListLayout", sidebar)
sLayout.Padding = UDim.new(0, 8)
sLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
sLayout.SortOrder = Enum.SortOrder.LayoutOrder

local function makeTab(name, order)
    local b = Instance.new("TextButton", sidebar)
    b.Size = UDim2.new(1, -12, 0, 36)
    b.LayoutOrder = order
    b.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
    b.TextColor3 = Color3.fromRGB(255, 255, 255)
    b.Font = Enum.Font.GothamBold
    b.TextScaled = true
    b.Text = name
    b.BorderSizePixel = 0
    Instance.new("UICorner", b).CornerRadius = UDim.new(0, 8)
    return b
end

local tabDesign = makeTab("SCRIPT DESIGN", 1)
local tabHelp   = makeTab("HELP", 2)
local tabConsole= makeTab("CONSOLE", 3)

-- CONTENT AREA
local content = Instance.new("Frame", f)
content.Size = UDim2.new(1, -140, 1, -40)
content.Position = UDim2.new(0, 140, 0, 40)
content.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
content.BorderSizePixel = 0
Instance.new("UICorner", content).CornerRadius = UDim.new(0, 10)

local pages = {}
local currentPage

local function makePage()
    local p = Instance.new("Frame", content)
    p.Size = UDim2.new(1, -10, 1, -10)
    p.Position = UDim2.new(0, 5, 0, 5)
    p.BackgroundTransparency = 1
    p.Visible = false
    return p
end

local function switchPage(name)
    if currentPage then
        currentPage.Visible = false
    end
    currentPage = pages[name]
    if currentPage then
        currentPage.Visible = true
    end
end

-- SCRIPT DESIGN PAGE
local pageDesign = makePage()
pages["SCRIPT DESIGN"] = pageDesign

local editorFrame = Instance.new("Frame", pageDesign)
editorFrame.Size = UDim2.new(1, -10, 1, -80)
editorFrame.Position = UDim2.new(0, 5, 0, 5)
editorFrame.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
editorFrame.BorderSizePixel = 0
Instance.new("UICorner", editorFrame).CornerRadius = UDim.new(0, 10)

local editorScroll = Instance.new("ScrollingFrame", editorFrame)
editorScroll.Size = UDim2.new(1, -8, 1, -8)
editorScroll.Position = UDim2.new(0, 4, 0, 4)
editorScroll.BackgroundTransparency = 1
editorScroll.ScrollBarThickness = 6
editorScroll.CanvasSize = UDim2.new(0, 0, 0, 2000)

local editorBox = Instance.new("TextBox", editorScroll)
editorBox.Size = UDim2.new(1, -10, 0, 2000)
editorBox.Position = UDim2.new(0, 5, 0, 5)
editorBox.BackgroundTransparency = 1
editorBox.TextColor3 = Color3.fromRGB(255, 255, 255)
editorBox.Font = Enum.Font.Code
editorBox.TextSize = 18
editorBox.MultiLine = true
editorBox.ClearTextOnFocus = false
editorBox.TextWrapped = false
editorBox.TextXAlignment = Enum.TextXAlignment.Left
editorBox.TextYAlignment = Enum.TextYAlignment.Top
editorBox.Text = "-- Paste your script here and press EXECUTE"

-- HELP PAGE
local pageHelp = makePage()
pages["HELP"] = pageHelp

local helpTitle = Instance.new("TextLabel", pageHelp)
helpTitle.Size = UDim2.new(1, -20, 0, 40)
helpTitle.Position = UDim2.new(0, 10, 0, 10)
helpTitle.BackgroundTransparency = 1
helpTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
helpTitle.Font = Enum.Font.GothamBold
helpTitle.TextScaled = true
helpTitle.Text = "CYBIX LOCAL SCRIPT AI"

local promptBox = Instance.new("TextBox", pageHelp)
promptBox.Size = UDim2.new(1, -20, 0, 120)
promptBox.Position = UDim2.new(0, 10, 0, 60)
promptBox.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
promptBox.TextColor3 = Color3.fromRGB(255, 255, 255)
promptBox.Font = Enum.Font.Code
promptBox.TextSize = 18
promptBox.MultiLine = true
promptBox.ClearTextOnFocus = false
promptBox.TextWrapped = true
promptBox.TextXAlignment = Enum.TextXAlignment.Left
promptBox.TextYAlignment = Enum.TextYAlignment.Top
promptBox.Text = "Example prompts:\n- gen me walkspeed script\n- gen me jump power script\n- gen me camera script\n- gen me gui button script"
Instance.new("UICorner", promptBox).CornerRadius = UDim.new(0, 10)

local genButton = Instance.new("TextButton", pageHelp)
genButton.Size = UDim2.new(0, 220, 0, 40)
genButton.Position = UDim2.new(0, 10, 0, 200)
genButton.BackgroundColor3 = Color3.fromRGB(60, 120, 200)
genButton.Text = "GENERATE LOCAL SCRIPT"
genButton.TextColor3 = Color3.fromRGB(255, 255, 255)
genButton.Font = Enum.Font.GothamBold
genButton.TextScaled = true
genButton.BorderSizePixel = 0
Instance.new("UICorner", genButton).CornerRadius = UDim.new(0, 10)

local helpInfo = Instance.new("TextLabel", pageHelp)
helpInfo.Size = UDim2.new(1, -20, 0, 120)
helpInfo.Position = UDim2.new(0, 10, 0, 250)
helpInfo.BackgroundTransparency = 1
helpInfo.TextColor3 = Color3.fromRGB(230, 230, 230)
helpInfo.Font = Enum.Font.Gotham
helpInfo.TextSize = 14
helpInfo.TextWrapped = true
helpInfo.TextXAlignment = Enum.TextXAlignment.Left
helpInfo.Text = "CYBIX AI generates simple LOCAL scripts.\nUse clear prompts like:\n• gen me walkspeed script\n• gen me jump power script\n• gen me camera script\n• gen me gui button script"

-- CONSOLE PAGE
local pageConsole = makePage()
pages["CONSOLE"] = pageConsole

local consoleFrame = Instance.new("ScrollingFrame", pageConsole)
consoleFrame.Size = UDim2.new(1, -10, 1, -50)
consoleFrame.Position = UDim2.new(0, 5, 0, 5)
consoleFrame.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
consoleFrame.ScrollBarThickness = 6
consoleFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
Instance.new("UICorner", consoleFrame).CornerRadius = UDim.new(0, 8)

local consoleLayout = Instance.new("UIListLayout", consoleFrame)
consoleLayout.Padding = UDim.new(0, 4)
consoleLayout.SortOrder = Enum.SortOrder.LayoutOrder

local clearWarningsButton = Instance.new("TextButton", pageConsole)
clearWarningsButton.Size = UDim2.new(0, 160, 0, 32)
clearWarningsButton.Position = UDim2.new(1, -170, 1, -40)
clearWarningsButton.BackgroundColor3 = Color3.fromRGB(220, 180, 60)
clearWarningsButton.Text = "CLEAR WARNINGS"
clearWarningsButton.TextColor3 = Color3.fromRGB(0, 0, 0)
clearWarningsButton.Font = Enum.Font.GothamBold
clearWarningsButton.TextScaled = true
clearWarningsButton.BorderSizePixel = 0
Instance.new("UICorner", clearWarningsButton).CornerRadius = UDim.new(0, 8)

-- LOG FUNCTION
local function addLog(kind, msg, fix)
    local row = Instance.new("Frame", consoleFrame)
    row.Size = UDim2.new(1, -4, 0, 40)
    row.BackgroundTransparency = 1

    local icon = Instance.new("TextLabel", row)
    icon.Size = UDim2.new(0, 32, 1, 0)
    icon.BackgroundTransparency = 1
    icon.Font = Enum.Font.GothamBold
    icon.TextScaled = true

    local text = Instance.new("TextLabel", row)
    text.Size = UDim2.new(1, -40, 1, 0)
    text.Position = UDim2.new(0, 40, 0, 0)
    text.BackgroundTransparency = 1
    text.Font = Enum.Font.Gotham
    text.TextSize = 14
    text.TextWrapped = true
    text.TextXAlignment = Enum.TextXAlignment.Left
    text.TextYAlignment = Enum.TextYAlignment.Top

    if kind == "error" then
        icon.Text = "⛔"
        icon.TextColor3 = Color3.fromRGB(255, 60, 60)
        text.TextColor3 = Color3.fromRGB(255, 180, 180)
    elseif kind == "warn" then
        icon.Text = "⚠️"
        icon.TextColor3 = Color3.fromRGB(255, 220, 60)
        text.TextColor3 = Color3.fromRGB(255, 240, 180)
    else
        icon.Text = "👍"
        icon.TextColor3 = Color3.fromRGB(80, 220, 120)
        text.TextColor3 = Color3.fromRGB(200, 255, 200)
    end

    local ts = os.date("%H:%M:%S")
    if fix and fix ~= "" then
        text.Text = "[" .. ts .. "] " .. msg .. "\nFix: " .. fix
    else
        text.Text = "[" .. ts .. "] " .. msg
    end

    consoleFrame.CanvasSize = UDim2.new(0, 0, 0, consoleLayout.AbsoluteContentSize.Y + 10)
    consoleFrame.CanvasPosition = Vector2.new(0, math.max(0, consoleLayout.AbsoluteContentSize.Y - consoleFrame.AbsoluteSize.Y))
end

-- CLEAR WARNINGS ONLY
clearWarningsButton.MouseButton1Click:Connect(function()
    for _, child in ipairs(consoleFrame:GetChildren()) do
        if child:IsA("Frame") then
            local icon = child:FindFirstChildOfClass("TextLabel")
            if icon and icon.Text == "⚠️" then
                child:Destroy()
            end
        end
    end
    consoleFrame.CanvasSize = UDim2.new(0, 0, 0, consoleLayout.AbsoluteContentSize.Y + 10)
end)

-- EXECUTION LOGIC (UNCHANGED)
local function exec(code)
    local fn, err = loadstring(code)
    if not fn then
        addLog("error", "Compile error: " .. tostring(err), "Check for missing brackets, commas, or stray characters.")
        return
    end
    local ok, runtimeErr = pcall(fn)
    if not ok then
        addLog("error", "Runtime error: " .. tostring(runtimeErr), "Something was nil or indexed wrong. Check your variables/instances.")
    else
        addLog("ok", "Script executed successfully.", "")
    end
end

-- EXECUTE BUTTON
local execButton = Instance.new("TextButton", pageDesign)
execButton.Size = UDim2.new(0, 160, 0, 40)
execButton.Position = UDim2.new(0, 20, 1, -50)
execButton.BackgroundColor3 = Color3.fromRGB(60, 180, 80)
execButton.Text = "EXECUTE"
execButton.TextColor3 = Color3.fromRGB(255, 255, 255)
execButton.Font = Enum.Font.GothamBold
execButton.TextScaled = true
execButton.BorderSizePixel = 0
Instance.new("UICorner", execButton).CornerRadius = UDim.new(0, 10)

execButton.MouseButton1Click:Connect(function()
    local s = editorBox.Text
    if s ~= "" then
        exec(s)
        switchPage("CONSOLE")
    end
end)

-- CLEAR BUTTON
local clearButton = Instance.new("TextButton", pageDesign)
clearButton.Size = UDim2.new(0, 160, 0, 40)
clearButton.Position = UDim2.new(1, -180, 1, -50)
clearButton.BackgroundColor3 = Color3.fromRGB(180, 60, 60)
clearButton.Text = "CLEAR"
clearButton.TextColor3 = Color3.fromRGB(255, 255, 255)
clearButton.Font = Enum.Font.GothamBold
clearButton.TextScaled = true
clearButton.BorderSizePixel = 0
Instance.new("UICorner", clearButton).CornerRadius = UDim.new(0, 10)

clearButton.MouseButton1Click:Connect(function()
    editorBox.Text = ""
end)

-- AI GENERATOR (HELP PAGE)
local function generateScript(prompt)
    local s = prompt:lower()
    if s:find("walkspeed") then
        return [[local p = game:GetService("Players").LocalPlayer
local char = p.Character or p.CharacterAdded:Wait()
local hum = char:WaitForChild("Humanoid")
hum.WalkSpeed = 32
print("Local walkspeed set to 32")]]
    end
    if s:find("jump") then
        return [[local p = game:GetService("Players").LocalPlayer
local char = p.Character or p.CharacterAdded:Wait()
local hum = char:WaitForChild("Humanoid")
hum.JumpPower = 75
print("Local jump power set to 75")]]
    end
    if s:find("camera") then
        return [[local cam = workspace.CurrentCamera
cam.CameraType = Enum.CameraType.Scriptable
cam.CFrame = CFrame.new(Vector3.new(0,20,-30), Vector3.new(0,0,0))
print("Camera set")]]
    end
    if s:find("gui") or s:find("button") then
        return [[local p = game:GetService("Players").LocalPlayer
local g = Instance.new("ScreenGui", p:WaitForChild("PlayerGui"))
local b = Instance.new("TextButton", g)
b.Size = UDim2.new(0,200,0,50)
b.Position = UDim2.new(0.5,-100,0.5,-25)
b.BackgroundColor3 = Color3.fromRGB(60,120,200)
b.TextColor3 = Color3.fromRGB(255,255,255)
b.Font = Enum.Font.GothamBold
b.TextScaled = true
b.Text = "LOCAL BUTTON"
b.MouseButton1Click:Connect(function()
    print("Clicked")
end)]]
    end

    addLog("warn", "AI could not detect your request.", "Try using words like walkspeed, jump, camera, gui, or button.")
    return "-- CYBIX AI could not detect your request."
end

genButton.MouseButton1Click:Connect(function()
    local scriptText = generateScript(promptBox.Text)
    editorBox.Text = scriptText
    switchPage("SCRIPT DESIGN")
end)

-- TAB SWITCHES
tabDesign.MouseButton1Click:Connect(function()
    switchPage("SCRIPT DESIGN")
end)

tabHelp.MouseButton1Click:Connect(function()
    switchPage("HELP")
end)

tabConsole.MouseButton1Click:Connect(function()
    switchPage("CONSOLE")
end)

-- DEFAULT PAGE
switchPage("SCRIPT DESIGN")

Features & Information

so i saw that many people wondered how i made my other script/menu and now i just felt like making a script that teaches and freely lets you make your own scripts aswell,

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts