
KeylessUniversal

-- Ensure the script only runs once per execution to prevent UI overlapping
local existingGui = game:GetService("CoreGui"):FindFirstChild("DeltaLocalMusicUI") or game:GetService("Players").LocalPlayer.PlayerGui:FindFirstChild("DeltaLocalMusicUI")
if existingGui then existingGui:Destroy() end
-- Create the ScreenGui and anchor it to the player's interface
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "DeltaLocalMusicUI"
-- Safely handle execution environment pathing
local targetParent = game:GetService("CoreGui") or game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui")
ScreenGui.Parent = targetParent
-- Create Background Frame
local MainFrame = Instance.new("Frame")
MainFrame.Size = UDim2.new(0, 250, 0, 130)
MainFrame.Position = UDim2.new(0.5, -125, 0.4, -65)
MainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
MainFrame.BorderSizePixel = 0
MainFrame.Active = true
MainFrame.Draggable = true -- Allows you to drag the player window around your screen
MainFrame.Parent = ScreenGui
-- Round the frame corners
local UICorner = Instance.new("UICorner")
UICorner.CornerRadius = UDim.new(0, 8)
UICorner.Parent = MainFrame
-- Title Text Label
local TitleLabel = Instance.new("TextLabel")
TitleLabel.Size = UDim2.new(1, 0, 0, 30)
TitleLabel.Text = "Delta Client Music Player"
TitleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
TitleLabel.BackgroundTransparency = 1
TitleLabel.Font = Enum.Font.SourceSansBold
TitleLabel.TextSize = 16
TitleLabel.Parent = MainFrame
-- Input Box for Song IDs
local IDInput = Instance.new("TextBox")
IDInput.Size = UDim2.new(0.9, 0, 0, 35)
IDInput.Position = UDim2.new(0.05, 0, 0.3, 0)
IDInput.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
IDInput.TextColor3 = Color3.fromRGB(255, 255, 255)
IDInput.PlaceholderText = "Paste Music ID Here"
IDInput.Text = ""
IDInput.Font = Enum.Font.SourceSans
IDInput.TextSize = 14
IDInput.Parent = MainFrame
local InputCorner = Instance.new("UICorner")
InputCorner.CornerRadius = UDim.new(0, 5)
InputCorner.Parent = IDInput
-- Play Button
local PlayButton = Instance.new("TextButton")
PlayButton.Size = UDim2.new(0.4, 0, 0, 30)
PlayButton.Position = UDim2.new(0.05, 0, 0.65, 0)
PlayButton.BackgroundColor3 = Color3.fromRGB(0, 170, 100)
PlayButton.TextColor3 = Color3.fromRGB(255, 255, 255)
PlayButton.Text = "Play"
PlayButton.Font = Enum.Font.SourceSansBold
PlayButton.TextSize = 14
PlayButton.Parent = MainFrame
local PlayCorner = Instance.new("UICorner")
PlayCorner.CornerRadius = UDim.new(0, 5)
PlayCorner.Parent = PlayButton
-- Stop Button
local StopButton = Instance.new("TextButton")
StopButton.Size = UDim2.new(0.4, 0, 0, 30)
StopButton.Position = UDim2.new(0.55, 0, 0.65, 0)
StopButton.BackgroundColor3 = Color3.fromRGB(200, 50, 50)
StopButton.TextColor3 = Color3.fromRGB(255, 255, 255)
StopButton.Text = "Stop"
StopButton.Font = Enum.Font.SourceSansBold
StopButton.TextSize = 14
StopButton.Parent = MainFrame
local StopCorner = Instance.new("UICorner")
StopCorner.CornerRadius = UDim.new(0, 5)
StopCorner.Parent = StopButton
-- Setup the local client-side Sound object
local LocalSound = Instance.new("Sound")
LocalSound.Name = "DeltaLocalAudioTrack"
LocalSound.Volume = 0.6
LocalSound.Looped = true
LocalSound.Parent = game:GetService("Workspace")
-- Script Play Logic
PlayButton.MouseButton1Click:Connect(function()
local numericID = tonumber(IDInput.Text)
if numericID then
LocalSound:Stop()
LocalSound.SoundId = "rbxassetid://" .. numericID
-- Use basic error trapping to handle unloaded assets gracefully
pcall(function()
if not LocalSound.IsLoaded then
LocalSound.Loaded:Wait()
end
LocalSound:Play()
end)
else
IDInput.Text = ""
IDInput.PlaceholderText = "Invalid Numbers!"
task.wait(1.5)
IDInput.PlaceholderText = "Paste Music ID Here"
end
end)
-- Script Stop Logic
StopButton.MouseButton1Click:Connect(function()
LocalSound:Stop()
end)No comments yet for this script.



