-- LocalScript (clientside - executor friendly) --// Create ScreenGui local player = game.Players.LocalPlayer local gui = Instance.new("ScreenGui") gui.Name = "MusicGUI" gui.Parent = player:WaitForChild("PlayerGui") gui.ResetOnSpawn = false --// Frame local frame = Instance.new("Frame") frame.Size = UDim2.new(0, 320, 0, 210) frame.Position = UDim2.new(0.3, 0, 0.3, 0) frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30) frame.Active = true frame.Draggable = true frame.Parent = gui --// Title local title = Instance.new("TextLabel") title.Size = UDim2.new(1, -30, 0, 30) title.BackgroundColor3 = Color3.fromRGB(50, 50, 50) title.Text = "Music GUI" title.TextColor3 = Color3.new(1,1,1) title.Font = Enum.Font.SourceSansBold title.TextSize = 18 title.Parent = frame --// Close Button local closeBtn = Instance.new("TextButton") closeBtn.Size = UDim2.new(0,30,0,30) closeBtn.Position = UDim2.new(1,-30,0,0) closeBtn.Text = "X" closeBtn.TextColor3 = Color3.new(1,1,1) closeBtn.BackgroundColor3 = Color3.fromRGB(200,50,50) closeBtn.Font = Enum.Font.SourceSansBold closeBtn.TextSize = 18 closeBtn.Parent = frame closeBtn.MouseButton1Click:Connect(function() gui:Destroy() end) --// Input Boxes local idBox = Instance.new("TextBox") idBox.Size = UDim2.new(1,-20,0,30) idBox.Position = UDim2.new(0,10,0,40) idBox.Text = "95156028272944" idBox.PlaceholderText = "Enter Music ID" idBox.TextColor3 = Color3.new(1,1,1) idBox.BackgroundColor3 = Color3.fromRGB(40,40,40) idBox.Parent = frame local volBox = Instance.new("TextBox") volBox.Size = UDim2.new(0.5,-15,0,30) volBox.Position = UDim2.new(0,10,0,80) volBox.Text = "1" volBox.PlaceholderText = "Volume (0-10)" volBox.TextColor3 = Color3.new(1,1,1) volBox.BackgroundColor3 = Color3.fromRGB(40,40,40) volBox.Parent = frame local pitchBox = Instance.new("TextBox") pitchBox.Size = UDim2.new(0.5,-15,0,30) pitchBox.Position = UDim2.new(0.5,5,0,80) pitchBox.Text = "1" pitchBox.PlaceholderText = "Pitch" pitchBox.TextColor3 = Color3.new(1,1,1) pitchBox.BackgroundColor3 = Color3.fromRGB(40,40,40) pitchBox.Parent = frame --// Buttons local startBtn = Instance.new("TextButton") startBtn.Size = UDim2.new(0.5,-15,0,30) startBtn.Position = UDim2.new(0,10,0,120) startBtn.Text = "Start Music" startBtn.BackgroundColor3 = Color3.fromRGB(70,150,70) startBtn.TextColor3 = Color3.new(1,1,1) startBtn.Parent = frame local stopBtn = Instance.new("TextButton") stopBtn.Size = UDim2.new(0.5,-15,0,30) stopBtn.Position = UDim2.new(0.5,5,0,120) stopBtn.Text = "Stop Music" stopBtn.BackgroundColor3 = Color3.fromRGB(150,70,70) stopBtn.TextColor3 = Color3.new(1,1,1) stopBtn.Parent = frame --// Info Label local info = Instance.new("TextLabel") info.Size = UDim2.new(1,-20,0,30) info.Position = UDim2.new(0,10,0,160) info.BackgroundTransparency = 1 info.Text = "musicId:95156028272944 Pitch:0.2" info.TextColor3 = Color3.new(1,1,1) info.Parent = frame --// Sound local sound = Instance.new("Sound") sound.Parent = game:GetService("SoundService") --// Saved values local lastId, lastVol, lastPitch = idBox.Text, volBox.Text, pitchBox.Text --// Button Logic startBtn.MouseButton1Click:Connect(function() local id = tonumber(idBox.Text) local vol = tonumber(volBox.Text) or 1 local pitch = tonumber(pitchBox.Text) or 1 if id then lastId, lastVol, lastPitch = id, vol, pitch sound.SoundId = "rbxassetid://"..id sound.Volume = math.clamp(vol,0,10) sound.PlaybackSpeed = pitch sound:Play() info.Text = "musicId:"..id.." Pitch:"..pitch end end) stopBtn.MouseButton1Click:Connect(function() sound:Stop() end)