Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Roblox sound IDs
- local soundIds = {
- RelaxedScene = 1848354536,
- RainingTacos = 142376088,
- Meme = 130778839,
- SunsetChill = 9046862941,
- phonk1 = 16190784875,
- phonk2 = 18841887539,
- phonk3 = 8654835474,
- DropStyle = 8931147511,
- Hellfire = 18841891232,
- Invasion = 15689453529,
- NinetiesPhonk = 18841894272,
- BlessedMane = 16831108393,
- SkullsStepz = 6819593773,
- Metamorphosis = 15689451063,
- Infinite = 16190784875,
- CanYou = 15689448519,
- AngeledUp = 16662829817,
- CowbellGod = 16190760005,
- StereoBait = 6696294740,
- TBoojDriftFunk = 139539357132592,
- BrazilianPhonkFiesta = 70417993466541,
- BrazilianPhonk = 105982297150235,
- BrazilianPhonkParty = 95443055804465,
- LailaBounceBrazilianPhonk = 126336104583370,
- BrazilianPhonkFavela = 138187964474322
- }
- local player = game.Players.LocalPlayer
- local playerGui = player:WaitForChild("PlayerGui")
- -- Create or find a Sound instance
- local function getOrCreateSound(soundName, soundId)
- local sound = playerGui:FindFirstChild(soundName)
- if not sound then
- sound = Instance.new("Sound")
- sound.Name = soundName
- sound.SoundId = "rbxassetid://" .. soundId
- sound.Looped = false -- Manual loop
- sound.Volume = 1 -- Adjust volume if needed
- sound.Parent = playerGui
- end
- return sound
- end
- -- Function to play a sound in a loop
- local function playSoundLoop(getgenvKey, soundName)
- local soundId = soundIds[getgenvKey]
- local sound = getOrCreateSound(soundName, soundId)
- while getgenv()[getgenvKey] do
- sound:Play()
- sound.Ended:Wait() -- Wait until the music ends
- if getgenv()[getgenvKey] then
- wait(2) -- Wait for 2 seconds before replaying
- end
- end
- end
- -- Start loops for RelaxedScene and RainingTacos
- spawn(function()
- playSoundLoop("RelaxedScene", "RelaxedScenePlayer")
- end)
- spawn(function()
- playSoundLoop("RainingTacos", "RainingTacosPlayer")
- end)
- -- Start loops for the new Brazilian Phonk tracks
- spawn(function()
- playSoundLoop("TBoojDriftFunk", "TBoojDriftFunkPlayer")
- end)
- spawn(function()
- playSoundLoop("BrazilianPhonkFiesta", "BrazilianPhonkFiestaPlayer")
- end)
- spawn(function()
- playSoundLoop("BrazilianPhonk", "BrazilianPhonkPlayer")
- end)
- spawn(function()
- playSoundLoop("BrazilianPhonkParty", "BrazilianPhonkPartyPlayer")
- end)
- spawn(function()
- playSoundLoop("LailaBounceBrazilianPhonk", "LailaBounceBrazilianPhonkPlayer")
- end)
- spawn(function()
- playSoundLoop("BrazilianPhonkFavela", "BrazilianPhonkFavelaPlayer")
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement