Running the show script piano
Key RequiredUniversal

Running the show script piano

Universal ScriptNormaziah_myNormaziah_my 2.4K views 634 executesUpdated Mar 30, 2026
Unrated
00
Lua Script•318 lines (9330 chars)
-- ==============================
-- Auto Piano Script
-- The One Who's Running the Show
-- Gooseworx (TADC) - Simplified
-- DETZ HUB | daffi7209 | Delta Executor
-- ==============================

local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
local CoreGui = game:GetService("CoreGui")

local noteToKey = {
    ["c"]  = Enum.KeyCode.A,
    ["c#"] = Enum.KeyCode.W,
    ["d"]  = Enum.KeyCode.S,
    ["d#"] = Enum.KeyCode.E,
    ["e"]  = Enum.KeyCode.D,
    ["f"]  = Enum.KeyCode.F,
    ["f#"] = Enum.KeyCode.T,
    ["g"]  = Enum.KeyCode.G,
    ["g#"] = Enum.KeyCode.Y,
    ["a"]  = Enum.KeyCode.H,
    ["a#"] = Enum.KeyCode.U,
    ["b"]  = Enum.KeyCode.J,
    ["c2"] = Enum.KeyCode.K,
    ["c#2"]= Enum.KeyCode.O,
    ["d2"] = Enum.KeyCode.L,
    ["d#2"]= Enum.KeyCode.P,
    ["e2"] = Enum.KeyCode.Semicolon,
}

-- Simplified melody of The One Who's Running the Show
local song = {
    -- Intro (bars 1-3) E major feel
    "e","f#","g#","a","b","rest",
    "e","f#","g#","a","b","c#2","rest",
    "b","a","g#","f#","e","rest","rest",

    -- Verse 1 (bars 4-7)
    "e","e","f#","g#","a","g#","f#",
    "rest",
    "e","f#","g#","a","b","a","g#",
    "rest",
    "f#","g#","a","g#","f#","e",
    "rest",
    "e","f#","g#","b","a","g#","f#",
    "rest","rest",

    -- Pre-chorus (bars 8-9)
    "a","a","b","c#2","b","a","g#",
    "rest",
    "g#","a","b","a","g#","f#","e",
    "rest","rest",

    -- Chorus (bars 10-13)
    "e","g#","b","e2","rest",
    "d#2","e2","d#2","b","rest",
    "c#2","b","a","g#","f#","e",
    "rest",
    "e","f#","g#","a","b","c#2","b","a",
    "rest","rest",

    -- Post chorus run
    "g#","a","b","c#2","b","a","g#","f#",
    "rest",
    "e","f#","g#","a","g#","f#","e",
    "rest","rest",

    -- Verse 2 (bars 14-17)
    "e","e","f#","g#","a","g#","f#",
    "rest",
    "e","f#","g#","a","b","c#2","b","a",
    "rest",
    "g#","a","b","a","g#","f#","e",
    "rest",
    "e","f#","g#","b","c#2","b","a","g#",
    "rest","rest",

    -- Bridge key change (bars 18-21) Bb area
    "f","g","a#","c2","rest",
    "a#","c2","a#","g","rest",
    "f","g","a#","c2","d2","c2","a#",
    "rest",
    "g","a#","c2","a#","g","f",
    "rest","rest",

    -- Build up (bars 22-25)
    "f","f","g","a#","c2","a#","g",
    "rest",
    "f","g","a#","c2","d2","c2","a#","g",
    "rest",
    "a#","c2","d2","c2","a#","g","f",
    "rest","rest",

    -- Final chorus fast (bars 26-29)
    "f","g","a#","c2","d2","c2","a#",
    "rest",
    "g","a#","c2","d2","c2","a#","g","f",
    "rest",
    "f","g","a#","c2","a#","g","f",
    "rest",
    "g","a#","c2","d2","rest",
    "rest","rest",

    -- Ending run (bars 30+)
    "d2","c2","a#","g","f","rest",
    "f","g","a#","c2","d2","d#2","rest",
    "d2","c2","a#","g","f","rest","rest",
}

local noteDelay = 0.16
local playing = false

local function pressKey(keyCode)
    local vim = game:GetService("VirtualInputManager")
    if vim then
        vim:SendKeyEvent(true, keyCode, false, game)
        wait(0.07)
        vim:SendKeyEvent(false, keyCode, false, game)
    else
        local uis = game:GetService("UserInputService")
        local inputObject = {
            KeyCode = keyCode,
            UserInputType = Enum.UserInputType.Keyboard,
            UserInputState = Enum.UserInputState.Begin
        }
        uis.InputBegan:Fire(inputObject, false)
        wait(0.07)
        inputObject.UserInputState = Enum.UserInputState.End
        uis.InputEnded:Fire(inputObject, false)
    end
end

local function playSong()
    playing = true
    for _, note in ipairs(song) do
        if not playing then break end
        if note == "rest" then
            wait(noteDelay * 0.5)
        else
            local key = noteToKey[note]
            if key then
                pressKey(key)
            end
            wait(noteDelay)
        end
    end
    playing = false
end

-- GUI
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Parent = CoreGui
ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
ScreenGui.ResetOnSpawn = false

local Frame = Instance.new("Frame")
Frame.Parent = ScreenGui
Frame.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
Frame.BorderSizePixel = 0
Frame.Position = UDim2.new(0.5, -140, 0.5, -125)
Frame.Size = UDim2.new(0, 280, 0, 250)
Frame.Active = true
Frame.Draggable = true

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

local FStroke = Instance.new("UIStroke")
FStroke.Thickness = 3
FStroke.Parent = Frame
local fh = 0
RunService.Heartbeat:Connect(function(dt)
    fh = (fh + dt * 0.4) % 1
    FStroke.Color = Color3.fromHSV(fh, 1, 1)
end)

local FGradient = Instance.new("UIGradient")
FGradient.Color = ColorSequence.new({
    ColorSequenceKeypoint.new(0, Color3.fromRGB(18, 18, 18)),
    ColorSequenceKeypoint.new(1, Color3.fromRGB(8, 8, 8))
})
FGradient.Rotation = 135
FGradient.Parent = Frame

local TopBar = Instance.new("Frame")
TopBar.Parent = Frame
TopBar.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
TopBar.Size = UDim2.new(1, 0, 0, 42)
TopBar.BorderSizePixel = 0
local TBC = Instance.new("UICorner")
TBC.CornerRadius = UDim.new(0, 12)
TBC.Parent = TopBar
local TBFill = Instance.new("Frame")
TBFill.Parent = TopBar
TBFill.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
TBFill.Position = UDim2.new(0, 0, 0.5, 0)
TBFill.Size = UDim2.new(1, 0, 0.5, 0)
TBFill.BorderSizePixel = 0

local Title = Instance.new("TextLabel")
Title.Parent = TopBar
Title.BackgroundTransparency = 1
Title.Size = UDim2.new(1, 0, 1, 0)
Title.Font = Enum.Font.GothamBold
Title.Text = "DETZ HUB | Auto Piano"
Title.TextSize = 14
local th = 0.5
RunService.Heartbeat:Connect(function(dt)
    th = (th + dt * 0.5) % 1
    Title.TextColor3 = Color3.fromHSV(th, 0.6, 1)
end)

local SongLabel = Instance.new("TextLabel")
SongLabel.Parent = Frame
SongLabel.BackgroundTransparency = 1
SongLabel.Position = UDim2.new(0, 0, 0, 48)
SongLabel.Size = UDim2.new(1, 0, 0, 25)
SongLabel.Font = Enum.Font.GothamBold
SongLabel.Text = "The One Who's Running the Show - Gooseworx"
SongLabel.TextColor3 = Color3.fromRGB(180, 180, 180)
SongLabel.TextSize = 11

local SpeedLabel = Instance.new("TextLabel")
SpeedLabel.Parent = Frame
SpeedLabel.BackgroundTransparency = 1
SpeedLabel.Position = UDim2.new(0, 12, 0, 75)
SpeedLabel.Size = UDim2.new(1, -20, 0, 20)
SpeedLabel.Font = Enum.Font.GothamBold
SpeedLabel.Text = "Speed: 0.16s per note"
SpeedLabel.TextColor3 = Color3.fromRGB(140, 140, 140)
SpeedLabel.TextSize = 11
SpeedLabel.TextXAlignment = Enum.TextXAlignment.Left

local function makeBtn(text, px, py, w)
    local btn = Instance.new("TextButton")
    btn.Parent = Frame
    btn.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
    btn.BorderSizePixel = 0
    btn.Position = UDim2.new(0, px, 0, py)
    btn.Size = UDim2.new(0, w or 80, 0, 32)
    btn.Font = Enum.Font.GothamBold
    btn.Text = text
    btn.TextColor3 = Color3.fromRGB(255, 255, 255)
    btn.TextSize = 12
    local c = Instance.new("UICorner")
    c.CornerRadius = UDim.new(0, 8)
    c.Parent = btn
    local s = Instance.new("UIStroke")
    s.Thickness = 2
    s.Parent = btn
    local h = math.random()
    RunService.Heartbeat:Connect(function(dt)
        h = (h + dt * 0.4) % 1
        s.Color = Color3.fromHSV(h, 1, 1)
    end)
    return btn
end

local SlowerBtn  = makeBtn("Slower", 15, 100, 75)
local SpeedValBtn = makeBtn("0.16s", 98, 100, 80)
SpeedValBtn.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
local FasterBtn  = makeBtn("Faster", 186, 100, 75)
local PlayBtn    = makeBtn("PLAY", 15, 148, 115)
PlayBtn.TextSize = 14
local StopBtn    = makeBtn("STOP", 148, 148, 115)
StopBtn.TextSize = 14

local StatusLabel = Instance.new("TextLabel")
StatusLabel.Parent = Frame
StatusLabel.BackgroundTransparency = 1
StatusLabel.Position = UDim2.new(0, 10, 0, 195)
StatusLabel.Size = UDim2.new(1, -20, 0, 25)
StatusLabel.Font = Enum.Font.Gotham
StatusLabel.Text = "Status: Ready"
StatusLabel.TextColor3 = Color3.fromRGB(160, 160, 160)
StatusLabel.TextSize = 11
StatusLabel.TextWrapped = true

local Credit = Instance.new("TextLabel")
Credit.Parent = Frame
Credit.BackgroundTransparency = 1
Credit.Position = UDim2.new(0, 0, 1, -22)
Credit.Size = UDim2.new(1, 0, 0, 20)
Credit.Font = Enum.Font.Gotham
Credit.Text = "daffi7209 | Delta Executor"
Credit.TextColor3 = Color3.fromRGB(60, 60, 60)
Credit.TextSize = 11

SlowerBtn.MouseButton1Click:Connect(function()
    noteDelay = math.min(noteDelay + 0.02, 0.5)
    SpeedValBtn.Text = string.format("%.2fs", noteDelay)
    SpeedLabel.Text = string.format("Speed: %.2fs per note", noteDelay)
end)

FasterBtn.MouseButton1Click:Connect(function()
    noteDelay = math.max(noteDelay - 0.02, 0.05)
    SpeedValBtn.Text = string.format("%.2fs", noteDelay)
    SpeedLabel.Text = string.format("Speed: %.2fs per note", noteDelay)
end)

PlayBtn.MouseButton1Click:Connect(function()
    if playing then return end
    StatusLabel.Text = "Status: Playing..."
    PlayBtn.TextColor3 = Color3.fromRGB(0, 255, 120)
    spawn(function()
        playSong()
        StatusLabel.Text = "Status: Finished!"
        PlayBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
    end)
end)

StopBtn.MouseButton1Click:Connect(function()
    playing = false
    StatusLabel.Text = "Status: Stopped"
    PlayBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
end)

Features & Information

WARNING IK IS BAD BUT I TRYED MY BEST
#Sorry#Soy

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts