How do you make a region3 expand into a different part?

I’m currently trying to make some sound regions in my game but the regions either overlap or replay the sound instead of just continuing to play

I’ve already tried looking for other ways how to do this but I haven’t found any solutions, I also tried using multiple parts to surround the other region but it replays the sound in the same region it’s supposed to be in

This is what I have been using currently

for _,region in pairs(soundRegions) do
 
	local info = {}
 
 local region3 = Region3.new(region.Position-(region.Size/2),region.Position+(region.Size/2))
 region.Transparency = .8
 
 info.Region = region3
 info.Sound = script.SoundRegions:FindFirstChild(region.name).Sound
 
 table.insert(soundManagement,info)

 end
1 Like

How are you using this soundManagement table to actually play the right sounds?

This is what I have currently

 table.insert(soundManagement,info)

 end

game:GetService("RunService").RenderStepped:Connect(function()
 
 for _,soundInfo in pairs(soundManagement) do

  local region = soundInfo.Region
		local sound = soundInfo.Sound
		local ui = script.Parent.MainUI.NewArea
		local foginfo = sound.Parent.Info
		local tweenInfo = TweenInfo.new(
			foginfo.Transition.Value, -- Time
			Enum.EasingStyle.Linear, -- EasingStyle
			Enum.EasingDirection.Out -- EasingDirection
		)
		local tweenInfo2 = TweenInfo.new(
			3, -- Time
			Enum.EasingStyle.Linear, -- EasingStyle
			Enum.EasingDirection.Out, -- EasingDirection
			0,
			true
		)
		local cd = true
  local parts = workspace:FindPartsInRegion3WithWhiteList(region,plr.Character:GetDescendants())

I still am missing the actual part where you play the sounds