Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

AmbientReverb Not Working Even When I Change It?

this is the local script in starter character scripts that doesnt change the ambient reverb

errors: cannot assign reverbtype cannot be assigned to (line 6)

dont know how to fix plz help

local character = script.Parent
local foot = character:FindFirstChild("LeftFoot") or character:FindFirstChild("RightFoot") or character:FindFirstChild("Left Leg") or character:FindFirstChild("Right Leg")

foot.Touched:Connect(function(otherPart)
	if otherPart and otherPart.Name == "beeaaaaa" then
		game.SoundService.AmbientReverb.ReverbType = 9
		game.SoundService.jazz.Playing = true
		wait(1.3)
		game.SoundService.jazz.Playing = false
		game.SoundService.AmbientReverb.ReverbType = 0
		game.SoundService.jazz.TimePosition = 0
	end
end)

1 comment

0

just change each ambientreverb to : game:GetService("SoundService").AmbientReverb = Enum.ReverbType.City -- change to whatever one you eant it to

1 answer

✓ Accepted answer

What you basically have to do is add an enumeration (enum) when you're doing things like soundservice.

Also, sorry for the late reply

code: game:GetService("SoundService").AmbientReverb = Enum.ReverbType.City -- change to whatever one you want it to ##References:

ENUM - Roblox Developer forums

ENUM - Roblox wiki

2 comments

0

Finally, now I can make Barry Bee Beenson say: "Ya liek jazz?" with a funny effect!

This discussion is preserved as it was. New answers, comments, and votes are closed.