AmbientReverb does not change, why?

The Mission is to change the Ambient Reverb if part got touched and change it back if untouched

    script.Parent.Touched:Connect(function(touched)
     	if touched  then
     		game.SoundService.AmbientReverb = game.SoundService.AmbientReverb.ConcertHall
     	end
     end)

 script.Parent.TouchEnded:Connect(function(touchEnded)
 	if touchEnded then
	game.SoundService.AmbientReverb = game.SoundService.AmbientReverb.City
 	end
 end)
1 Like

wdym like do u want to change the Parent? Explain more please

i want to change the Sound AmbientReverb in Sound Service (game.SoundService.AmbientReverb) if a part get touched and untouched

My goal is to make the sound echo when a car drives into a tunnel.

script.Parent.Touched:Connect(function(touched)
if touched.Parent:FindFirstChild(“Humanoid”) then
game.SoundService.AmbientReverb.SoundId = game.SoundService.AmbientReverb.ConcertHall.SoundId
end
end)

script.Parent.TouchEnded:Connect(function(touchEnded)
if touchEnded.Parent:FindFirstChild(“Humanoid”) then
game.SoundService.AmbientReverb.SoundId = game.SoundService.AmbientReverb.City.SoundId
end
end)

1 Like

it does not work (its in a local script)

is the local script in Workspace? if it is then Change it to Script

1 Like

thank you for ur fast help!!! xd