so i want to make stuff like tunnels, underground parking lots, etc.. and i have been trying a while to add a echo. Wich i can't seen to figure out. Atm i have this thing from the youtuber AlvinBlox with soundregions, first it tested it with music, wich worked, then i tried to add the EchoSoundEffect into the sound and remove the Music ID. Nothing happend.

folders (SoundRegions): https://imgur.com/yheGTZq

script for the regions:

local SoundRegionsWorkspace = game.Workspace:WaitForChild("SoundRegions")

local Found = false

while wait(1) do
	
	for i, v in pairs(SoundRegionsWorkspace:GetChildren()) do
		
		Found = false
		local region = Region3.new(v.Position - (v.Size/2),v.Position + (v.Size/2))
		
		local parts = game.Workspace:FindPartsInRegion3WithWhiteList(region, game.Players.LocalPlayer.Character:GetDescendants())
		
		
		for _, part in pairs(parts) do
			-- Loop one by one trough the parts table
			if part:FindFirstAncestor(game.Players.LocalPlayer.Name) then
				print("player was found")
				Found = true
				break
			else
				Found = false
				print("Player was not found in region")
			end
		end
		
		if Found == true then
		if script.Parent.SoundRegions[v.Name].IsPlaying == false then
			script.Parent.SoundRegions[v.Name]:Play()
			break
		end
		else
			script.Parent.SoundRegions[v.Name]:stop()
		end
		
	end
end

2 comments

0

Are their any errors in the console, or is the sound just not playing?

0

not a single error, the sound (echo) isn't playing