-- OBI MUSIC GUI (Clean Version) local Players = game:GetService("Players") local UIS = game:GetService("UserInputService") local SoundService = game:GetService("SoundService") local RunService = game:GetService("RunService") local player = Players.LocalPlayer local pGui = player:WaitForChild("PlayerGui") local old = pGui:FindFirstChild("OBI MUSIC") if old then old:Destroy() end --- -- GUI local gui = Instance.new("ScreenGui") gui.Name = "OBI MUSIC" gui.ResetOnSpawn = false gui.Parent = pGui local main = Instance.new("Frame") main.Size = UDim2.new(0,420,0,550) main.Position = UDim2.new(0.5,-210,0.25,0) main.BackgroundColor3 = Color3.fromRGB(20,20,20) main.Parent = gui Instance.new("UICorner", main) local stroke = Instance.new("UIStroke") stroke.Parent = main stroke.Color = Color3.fromRGB(255,0,0) stroke.Thickness = 2 --- -- DRAG local dragging = false local dragStart local startPos main.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = true dragStart = input.Position startPos = main.Position end end) UIS.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = false end end) UIS.InputChanged:Connect(function(input) if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then local delta = input.Position - dragStart main.Position = UDim2.new( startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y ) end end) --- -- SOUND local sound = Instance.new("Sound") sound.Parent = SoundService sound.Volume = 0.5 --- -- TITLE local title = Instance.new("TextLabel") title.Size = UDim2.new(1,0,0,40) title.BackgroundTransparency = 1 title.Text = "OBI MUSIC PLAYER" title.Font = Enum.Font.GothamBold title.TextSize = 18 title.TextColor3 = Color3.new(1,1,1) title.Parent = main --- -- PLAY / STOP local playBtn = Instance.new("TextButton") playBtn.Size = UDim2.new(0,100,0,35) playBtn.Position = UDim2.new(0,10,0,50) playBtn.Text = "PLAY" playBtn.Parent = main local stopBtn = Instance.new("TextButton") stopBtn.Size = UDim2.new(0,100,0,35) stopBtn.Position = UDim2.new(0,120,0,50) stopBtn.Text = "STOP" stopBtn.Parent = main local currentSongId = nil playBtn.MouseButton1Click:Connect(function() if currentSongId then sound:Play() end end) stopBtn.MouseButton1Click:Connect(function() sound:Stop() end) --- -- VOLUME local volumeBox = Instance.new("TextBox") volumeBox.Size = UDim2.new(0,100,0,35) volumeBox.Position = UDim2.new(0,230,0,50) volumeBox.Text = "0.5" volumeBox.Parent = main volumeBox.FocusLost:Connect(function() local v = tonumber(volumeBox.Text) if v then sound.Volume = math.clamp(v,0,1) end end) --- -- RGB local rgbBtn = Instance.new("TextButton") rgbBtn.Size = UDim2.new(0,70,0,35) rgbBtn.Position = UDim2.new(0,340,0,50) rgbBtn.Text = "RGB" rgbBtn.Parent = main local rgb = false rgbBtn.MouseButton1Click:Connect(function() rgb = not rgb end) RunService.RenderStepped:Connect(function() if rgb then stroke.Color = Color3.fromHSV((tick()%5)/5,1,1) end end) --- -- SONG LIST local songs = { {"Sasso ki mala",120349214701956}, {"Ranjheya ve",77373466558471}, {"Aadat",94103203628909}, {"Mann Mera",88345320570909}, {"Pal Pal",77002121761232}, {"Jhol",121180010622504}, {"Dhun",129981117529204}, {"Hai dil ye mera",113792808283128}, {"Parde me rhne do",81161805007229}, {"Zaroori tha",90050076108794}, {"Summer",1842690955}, {"The way u kiss me",121052103423342}, {"Senorita",91949834100907}, {"No surprises",135870211789424}, {"Under your spell",91007045451630}, {"Fire",90091311847595}, {"Love Story",71000129176680}, {"Mockingbird",3832083906}, {"Caliente",105492220688862}, {"Montagem rugada",97507441505828}, {"Funk sigcuro",96028783423401}, {"Solo una noche",111205815697819}, } local scroll = Instance.new("ScrollingFrame") scroll.Size = UDim2.new(1,-20,1,-110) scroll.Position = UDim2.new(0,10,0,100) scroll.CanvasSize = UDim2.new(0,0,0,#songs * 40) scroll.ScrollBarThickness = 6 scroll.Parent = main local layout = Instance.new("UIListLayout") layout.Parent = scroll for _,songData in ipairs(songs) do local btn = Instance.new("TextButton") btn.Size = UDim2.new(1,-5,0,35) btn.Text = songData[1] btn.Parent = scroll btn.MouseButton1Click:Connect(function() currentSongId = songData[2] sound:Stop() sound.SoundId = "rbxassetid://" .. currentSongId sound:Play() end) end