Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

AmbientReverb Not Working Even When I Change It?

Asked by 3 years ago

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)
0
just change each ambientreverb to : game:GetService("SoundService").AmbientReverb = Enum.ReverbType.City -- change to whatever one you eant it to JesseSong 3916 — 3y

1 answer

Log in to vote
1
Answered by
JesseSong 3916 Moderation Voter Community Moderator
3 years ago
Edited 3 years ago

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

0
Finally, now I can make Barry Bee Beenson say: "Ya liek jazz?" with a funny effect! Jakob_Cashy 79 — 3y
Ad

Answer this question