Music customer for you nokey
Key RequiredUniversal

Music customer for you nokey

Universal ScriptLkickToko35345LkickToko35345 3.5K views 11 executesUpdated Sep 20, 2025
Unrated
00
Lua Script•127 lines (3809 chars)
local Players = game:GetService("Players")
local player = Players.LocalPlayer

local gui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
gui.Name = "MusicPlayerGUI"

-- Frame
local frame = Instance.new("Frame", gui)
frame.Size = UDim2.new(0, 300, 0, 200)
frame.Active = true
frame.Draggable = true
frame.Position = UDim2.new(0.3, 0, 0.3, 0)
frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
frame.BorderSizePixel = 0

-- Title
local title = Instance.new("TextLabel", frame)
title.Size = UDim2.new(1, 0, 0, 40)
title.Text = "🎶 Custom Music Player"
title.TextColor3 = Color3.new(1, 1, 1)
title.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
title.Font = Enum.Font.GothamBold
title.TextScaled = true

-- TextBox buat SoundId
local input = Instance.new("TextBox", frame)
input.Size = UDim2.new(0.8, 0, 0, 30)
input.Position = UDim2.new(0.1, 0, 0.3, 0)
input.PlaceholderText = "Enter SoundId..."
input.Font = Enum.Font.Gotham
input.TextScaled = true
input.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
input.TextColor3 = Color3.new(1,1,1)

-- Play button
local playBtn = Instance.new("TextButton", frame)
playBtn.Size = UDim2.new(0.4, 0, 0, 30)
playBtn.Position = UDim2.new(0.1, 0, 0.5, 0)
playBtn.Text = "▶ Play"
playBtn.BackgroundColor3 = Color3.fromRGB(0, 200, 0)
playBtn.TextColor3 = Color3.new(1,1,1)
playBtn.Font = Enum.Font.GothamBold
playBtn.TextScaled = true

-- Stop button
local stopBtn = Instance.new("TextButton", frame)
stopBtn.Size = UDim2.new(0.4, 0, 0, 30)
stopBtn.Position = UDim2.new(0.5, 0, 0.5, 0)
stopBtn.Text = "⏹ Stop"
stopBtn.BackgroundColor3 = Color3.fromRGB(200, 0, 0)
stopBtn.TextColor3 = Color3.new(1,1,1)
stopBtn.Font = Enum.Font.GothamBold
stopBtn.TextScaled = true

-- Pause button
local pauseBtn = Instance.new("TextButton", frame)
pauseBtn.Size = UDim2.new(0.4, 0, 0, 30)
pauseBtn.Position = UDim2.new(0.1, 0, 0.65, 0)
pauseBtn.Text = "⏸ Pause"
pauseBtn.BackgroundColor3 = Color3.fromRGB(255, 170, 0)
pauseBtn.TextColor3 = Color3.new(1,1,1)
pauseBtn.Font = Enum.Font.GothamBold
pauseBtn.TextScaled = true

-- Resume button
local resumeBtn = Instance.new("TextButton", frame)
resumeBtn.Size = UDim2.new(0.4, 0, 0, 30)
resumeBtn.Position = UDim2.new(0.5, 0, 0.65, 0)
resumeBtn.Text = "▶ Resume"
resumeBtn.BackgroundColor3 = Color3.fromRGB(0, 120, 255)
resumeBtn.TextColor3 = Color3.new(1,1,1)
resumeBtn.Font = Enum.Font.GothamBold
resumeBtn.TextScaled = true

local resuumeBtn = Instance.new("TextButton", frame)
resuumeBtn.Size = UDim2.new(0.4, 0, 0, 30)
resuumeBtn.Position = UDim2.new(1, 0, 0.65, 0)
resuumeBtn.Text = "▶ RESET gui "
resuumeBtn.BackgroundColor3 = Color3.fromRGB(0, 120, 255)
resuumeBtn.TextColor3 = Color3.new(1,1,1)
resuumeBtn.Font = Enum.Font.GothamBold
resuumeBtn.TextScaled = true

-- Volume slider (simple pakai TextBox)
local volBox = Instance.new("TextBox", frame)
volBox.Size = UDim2.new(0.8, 0, 0, 30)
volBox.Position = UDim2.new(0.1, 0, 0.8, 0)
volBox.PlaceholderText = "Volume (0 - 10)"
volBox.Font = Enum.Font.Gotham
volBox.TextScaled = true
volBox.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
volBox.TextColor3 = Color3.new(1,1,1)

-- Sound object
local sound = Instance.new("Sound", workspace)
sound.Name = "CustomMusic"

-- Function
playBtn.MouseButton1Click:Connect(function()
	if tonumber(input.Text) then
		sound.SoundId = "rbxassetid://"..input.Text
		sound:Play()
	end
end)

stopBtn.MouseButton1Click:Connect(function()
	sound:Stop()
end)

pauseBtn.MouseButton1Click:Connect(function()
	sound:Pause()
end)

resumeBtn.MouseButton1Click:Connect(function()
	sound:Resume()
end)

resuumeBtn.MouseButton1Click:Connect(function()
gui:Destroy() 
end)

volBox.FocusLost:Connect(function(enterPressed)
	if enterPressed and tonumber(volBox.Text) then
		local vol = math.clamp(tonumber(volBox.Text), 0, 10)
		sound.Volume = vol
	end
end)

Features & Information

Need music required
#What is

Community Comments (2)

KotYTKotYTSep 20, 2025

Good chat gpt

LkickToko35345LkickToko35345Sep 20, 2025

Chat gpyt

More Scripts for Universal Scripts