Advertisement
C-H-4-0-S

Sound ids

Nov 26th, 2024
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.63 KB | None | 0 0
  1. -- Roblox sound IDs
  2. local soundIds = {
  3. RelaxedScene = 1848354536,
  4. RainingTacos = 142376088,
  5. Meme = 130778839,
  6. SunsetChill = 9046862941,
  7. phonk1 = 16190784875,
  8. phonk2 = 18841887539,
  9. phonk3 = 8654835474,
  10. DropStyle = 8931147511,
  11. Hellfire = 18841891232,
  12. Invasion = 15689453529,
  13. NinetiesPhonk = 18841894272,
  14. BlessedMane = 16831108393,
  15. SkullsStepz = 6819593773,
  16. Metamorphosis = 15689451063,
  17. Infinite = 16190784875,
  18. CanYou = 15689448519,
  19. AngeledUp = 16662829817,
  20. CowbellGod = 16190760005,
  21. StereoBait = 6696294740,
  22. TBoojDriftFunk = 139539357132592,
  23. BrazilianPhonkFiesta = 70417993466541,
  24. BrazilianPhonk = 105982297150235,
  25. BrazilianPhonkParty = 95443055804465,
  26. LailaBounceBrazilianPhonk = 126336104583370,
  27. BrazilianPhonkFavela = 138187964474322
  28. }
  29.  
  30. local player = game.Players.LocalPlayer
  31. local playerGui = player:WaitForChild("PlayerGui")
  32.  
  33. -- Create or find a Sound instance
  34. local function getOrCreateSound(soundName, soundId)
  35. local sound = playerGui:FindFirstChild(soundName)
  36. if not sound then
  37. sound = Instance.new("Sound")
  38. sound.Name = soundName
  39. sound.SoundId = "rbxassetid://" .. soundId
  40. sound.Looped = false -- Manual loop
  41. sound.Volume = 1 -- Adjust volume if needed
  42. sound.Parent = playerGui
  43. end
  44. return sound
  45. end
  46.  
  47. -- Function to play a sound in a loop
  48. local function playSoundLoop(getgenvKey, soundName)
  49. local soundId = soundIds[getgenvKey]
  50. local sound = getOrCreateSound(soundName, soundId)
  51. while getgenv()[getgenvKey] do
  52. sound:Play()
  53. sound.Ended:Wait() -- Wait until the music ends
  54. if getgenv()[getgenvKey] then
  55. wait(2) -- Wait for 2 seconds before replaying
  56. end
  57. end
  58. end
  59.  
  60. -- Start loops for RelaxedScene and RainingTacos
  61. spawn(function()
  62. playSoundLoop("RelaxedScene", "RelaxedScenePlayer")
  63. end)
  64.  
  65. spawn(function()
  66. playSoundLoop("RainingTacos", "RainingTacosPlayer")
  67. end)
  68.  
  69. -- Start loops for the new Brazilian Phonk tracks
  70. spawn(function()
  71. playSoundLoop("TBoojDriftFunk", "TBoojDriftFunkPlayer")
  72. end)
  73.  
  74. spawn(function()
  75. playSoundLoop("BrazilianPhonkFiesta", "BrazilianPhonkFiestaPlayer")
  76. end)
  77.  
  78. spawn(function()
  79. playSoundLoop("BrazilianPhonk", "BrazilianPhonkPlayer")
  80. end)
  81.  
  82. spawn(function()
  83. playSoundLoop("BrazilianPhonkParty", "BrazilianPhonkPartyPlayer")
  84. end)
  85.  
  86. spawn(function()
  87. playSoundLoop("LailaBounceBrazilianPhonk", "LailaBounceBrazilianPhonkPlayer")
  88. end)
  89.  
  90. spawn(function()
  91. playSoundLoop("BrazilianPhonkFavela", "BrazilianPhonkFavelaPlayer")
  92. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement