SPECTRA X
Key RequiredUniversal

SPECTRA X

Universal ScriptMaxx13130915Maxx13130915 504 views 186 executesUpdated Feb 3, 2026
Unrated
00
Lua Script•199 lines (6786 chars)
local Players = game:GetService("Players")
local CoreGui = game:GetService("CoreGui")
local TweenService = game:GetService("TweenService")
local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")

local SpectraX = Instance.new("ScreenGui")
SpectraX.Name = "SPECTRA_X_CORE"
SpectraX.Parent = CoreGui
SpectraX.ZIndexBehavior = Enum.ZIndexBehavior.Sibling

local Colors = {
    DeepBlack = Color3.fromHex("#0A0A0A"),
    Graphite = Color3.fromHex("#1E1E1E"),
    NeonBlue = Color3.fromHex("#3FA9F5"),
    SpectralPurple = Color3.fromHex("#8B5CF6"),
    AcidGreen = Color3.fromHex("#22FF88"),
    SignalRed = Color3.fromHex("#FF3B3B")
}

local MainFrame = Instance.new("Frame")
MainFrame.Name = "MainFrame"
MainFrame.Parent = SpectraX
MainFrame.BackgroundColor3 = Colors.DeepBlack
MainFrame.BackgroundTransparency = 0.15
MainFrame.BorderSizePixel = 0
MainFrame.Position = UDim2.new(0.5, -250, 0.5, -150)
MainFrame.Size = UDim2.new(0, 550, 0, 320)
MainFrame.ClipsDescendants = true

local UICorner = Instance.new("UICorner")
UICorner.CornerRadius = UDim.new(0, 12)
UICorner.Parent = MainFrame

local UIStroke = Instance.new("UIStroke")
UIStroke.Thickness = 2
UIStroke.Color = Colors.SpectralPurple
UIStroke.Transparency = 0.4
UIStroke.Parent = MainFrame

local Noise = Instance.new("ImageLabel")
Noise.Parent = MainFrame
Noise.Size = UDim2.new(1, 0, 1, 0)
Noise.BackgroundTransparency = 1
Noise.Image = "rbxassetid://3035118744"
Noise.ImageTransparency = 0.93
Noise.ScaleType = Enum.ScaleType.Tile
Noise.TileSize = UDim2.new(0, 128, 0, 128)
Noise.ZIndex = 0

local function SpawnPulse()
    local Pulse = Instance.new("Frame")
    Pulse.Size = UDim2.new(0, 3, 1, 0)
    Pulse.BackgroundColor3 = Colors.NeonBlue
    Pulse.BackgroundTransparency = 0.6
    Pulse.BorderSizePixel = 0
    Pulse.Parent = MainFrame
    Pulse.Position = UDim2.new(-0.1, 0, 0, 0)
    
    local t = TweenService:Create(Pulse, TweenInfo.new(4, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, -1), {
        Position = UDim2.new(1.2, 0, 0, 0)
    })
    t:Play()
end
SpawnPulse()

local TitleBar = Instance.new("Frame")
TitleBar.Size = UDim2.new(1, 0, 0, 40)
TitleBar.BackgroundColor3 = Colors.Graphite
TitleBar.BorderSizePixel = 0
TitleBar.Parent = MainFrame

local TitleText = Instance.new("TextLabel")
TitleText.Size = UDim2.new(1, -20, 1, 0)
TitleText.Position = UDim2.new(0, 15, 0, 0)
TitleText.BackgroundTransparency = 1
TitleText.Font = Enum.Font.GothamBold
TitleText.Text = "SPECTRA X | PREVIEW"
TitleText.TextColor3 = Colors.NeonBlue
TitleText.TextSize = 16
TitleText.TextXAlignment = Enum.TextXAlignment.Left
TitleText.Parent = TitleBar

local EditorFrame = Instance.new("ScrollingFrame")
EditorFrame.Position = UDim2.new(0.02, 0, 0.16, 0)
EditorFrame.Size = UDim2.new(0.72, 0, 0.72, 0)
EditorFrame.BackgroundColor3 = Color3.fromRGB(12, 12, 12)
EditorFrame.BorderSizePixel = 0
EditorFrame.ScrollBarThickness = 3
EditorFrame.Parent = MainFrame

local ScriptInput = Instance.new("TextBox")
ScriptInput.Size = UDim2.new(1, 0, 10, 0)
ScriptInput.MultiLine = true
ScriptInput.Text = ""
ScriptInput.PlaceholderText = "-- Ready for input..."
ScriptInput.ClearTextOnFocus = false
ScriptInput.TextColor3 = Color3.fromRGB(220, 220, 220)
ScriptInput.TextXAlignment = Enum.TextXAlignment.Left
ScriptInput.TextYAlignment = Enum.TextYAlignment.Top
ScriptInput.Font = Enum.Font.Code
ScriptInput.TextSize = 13
ScriptInput.BackgroundTransparency = 1
ScriptInput.Parent = EditorFrame

local ButtonList = Instance.new("Frame")
ButtonList.Position = UDim2.new(0.76, 0, 0.16, 0)
ButtonList.Size = UDim2.new(0.22, 0, 0.72, 0)
ButtonList.BackgroundTransparency = 1
ButtonList.Parent = MainFrame

local UIListLayout = Instance.new("UIListLayout")
UIListLayout.Parent = ButtonList
UIListLayout.Padding = UDim.new(0, 8)
UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder

local function MakeBtn(txt, clr)
    local b = Instance.new("TextButton")
    b.Size = UDim2.new(1, 0, 0, 32)
    b.BackgroundColor3 = Colors.Graphite
    b.BorderSizePixel = 0
    b.Font = Enum.Font.GothamSemibold
    b.Text = txt
    b.TextColor3 = clr
    b.TextSize = 12
    b.Parent = ButtonList
    
    local c = Instance.new("UICorner")
    c.CornerRadius = UDim.new(0, 6)
    c.Parent = b
    
    b.MouseEnter:Connect(function()
        TweenService:Create(b, TweenInfo.new(0.2), {BackgroundColor3 = Colors.NeonBlue, TextColor3 = Colors.DeepBlack}):Play()
    end)
    b.MouseLeave:Connect(function()
        TweenService:Create(b, TweenInfo.new(0.2), {BackgroundColor3 = Colors.Graphite, TextColor3 = clr}):Play()
    end)
    
    return b
end

local Exec = MakeBtn("EXECUTE", Colors.AcidGreen)
local Paste = MakeBtn("PASTE", Colors.NeonBlue)
local Clear = MakeBtn("CLEAR", Colors.SpectralPurple)
local Inject = MakeBtn("INJECT", Colors.NeonBlue)

local Status = Instance.new("TextLabel")
Status.Position = UDim2.new(0, 15, 0.92, 0)
Status.Size = UDim2.new(1, -30, 0, 20)
Status.BackgroundTransparency = 1
Status.Font = Enum.Font.Gotham
Status.Text = "System: Active"
Status.TextColor3 = Colors.AcidGreen
Status.TextSize = 11
Status.TextXAlignment = Enum.TextXAlignment.Left
Status.Parent = MainFrame

Exec.MouseButton1Click:Connect(function()
    local s, e = pcall(function() loadstring(ScriptInput.Text)() end)
    if not s then Status.Text = "Error: "..tostring(e) Status.TextColor3 = Colors.SignalRed end
end)

Paste.MouseButton1Click:Connect(function()
    if getclipboard then
        ScriptInput.Text = ScriptInput.Text .. getclipboard()
        Status.Text = "System: Data Pasted"
        Status.TextColor3 = Colors.NeonBlue
    else
        Status.Text = "Error: Executor doesn't support getclipboard"
        Status.TextColor3 = Colors.SignalRed
    end
end)

Clear.MouseButton1Click:Connect(function()
    ScriptInput.Text = ""
end)

local dragging, dragInput, dragStart, startPos
MainFrame.InputBegan:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
        dragging = true
        dragStart = input.Position
        startPos = MainFrame.Position
        input.Changed:Connect(function()
            if input.UserInputState == Enum.UserInputState.End then dragging = false end
        end)
    end
end)
MainFrame.InputChanged:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
        dragInput = input
    end
end)
RunService.RenderStepped:Connect(function()
    if dragging and dragInput then
        local delta = dragInput.Position - dragStart
        MainFrame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
    end
end)

Features & Information

Executor

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts