I've made a part that functions as an ocean floor and duplicated them to create part of my map (due to size limits). I found an ambient wave sound effect that I'll like to add to every part of the "OceanFloor" group, but I couldn't figure out how to. I would want to attach it to the part as a 3D sound, meaning that it gradually gets quieter as you move farther away since I don't want the wave sound effect playing deep into the mainland. Here's the script:
local CollectionService = game:GetService("CollectionService")
local affectedpart = CollectionService:GetTagged("OceanFloor")
for _, TaggedPart in pairs(affectedpart) do
--play sound here
end
In case you need it, here's the URL: rbxassetid://2363343465 Also if you listen to it, you'll notice that when it's looping the start and end doesn't match up, so if you could also figure out a way to trim it (I want to cut the last few seconds so it matches up with the start) I would also appreciate it.
Thanks for your help :)
