How to ADD MUSIC in different areas Roblox Studio! (2024)

Поделиться
HTML-код
  • Опубликовано: 26 окт 2024

Комментарии • 10

  • @ragehamster2466
    @ragehamster2466 18 дней назад

    tysm this really helped with my game :D

  • @ClassicDev-robux
    @ClassicDev-robux Месяц назад

    lol i love the videos you do:)
    I'm new too btw

  • @PolyDotAVI
    @PolyDotAVI 2 месяца назад

    It worked thanks. the only problem i had was that jumping inside the block caused the music to stop and if the block was too big the music was too quiet

    • @PixlatedGalaxy
      @PixlatedGalaxy Месяц назад

      When you jump it stops working, but if you leave and go there again it works fine when jumping. do you have a fix?

    • @PolyDotAVI
      @PolyDotAVI Месяц назад

      @@PixlatedGalaxy i used a completely different method, it was a freemodel called like area music system or something

    • @PixlatedGalaxy
      @PixlatedGalaxy Месяц назад

      @@PolyDotAVI Thanks, it worked

    • @PolyDotAVI
      @PolyDotAVI Месяц назад

      @@PixlatedGalaxy keep in mind that if you have a bunch of them they're all gonna wanna start at the same time. i was having issues where it would try calling a part that wasnt loaded in yet, i had a WaitforPart command that kinda brute forced it to work but if you have too many it creates lag.
      I'm pretty sure initially the music will play for everyone IIRC, in the one i used it was looking for a "Humanoid" to touch it, and i got the music to be player specific by changing the part it was looking for to be a player.
      I haven't tried anything but my idea for long term loading would be the script for the next areas music is disabled, the player triggers an event thats near the music part, that event enables the script. If you try it and run into issues i dont think i can help you because i haven't even touched studio in a while. Good luck

  • @TheRealGoldSapper
    @TheRealGoldSapper 2 месяца назад

    Cool.

  • @cosmo27
    @cosmo27 2 месяца назад

    Everything works except when I spawn inside of the box. For some reason it won’t play the audio unless I get out of the zone and go back in, do you know why?

    • @BronzeCar
      @BronzeCar 2 месяца назад +1

      here have this backround music script i made
      local SoundService = game:GetService("SoundService")
      local backgroundMusic = SoundService:FindFirstChild("music") -- put music in sound service and name it music
      if backgroundMusic then
      backgroundMusic.Looped = true -- Make the music loop
      backgroundMusic.Volume = 1 -- Set the volume (adjust as needed)
      backgroundMusic:Play()
      end
      it should be a local script and it should be in starter player scripts
      if you need a script to mute the background music i got u