Changing Soundservice's listener breaks character sounds

Changing the soundservice’s listener to the player’s character breaks character sounds.

SoundService:SetListener(Enum.ListenerType.CFrame, player.Character:WaitForChild("HumanoidRootPart").CFrame)

I’m currently working with an isometric camera, and for sounds to play correctly, i set the listener to the player’s character, but if the player walks away from the spawn location, the sounds get quiter and quiter until they just dont play anymore.

I’m guessing the RbxCharacterSounds script overrides the listener and sets it to something else?

2 Likes

Solution found.

sound.RollOffMinDistance = 150 --line 84
sound.RollOffMaxDistance = 150 --line 85

By changing the default RbxCharacterSounds script and setting sound roll off distances to the same value fixed it. I’m guessing this is a bug since sound roll off shouldn’t affect character sounds, since the listener IS the character.

1 Like

Actually, my solution was wrong, and everything i said in the last reply was wrong.

SoundService:SetListener(Enum.ListenerType.CFrame <-- this doesnt get updated, player.Character:WaitForChild("HumanoidRootPart").CFrame)

I was dumb and for some reason thought Enum.ListenerType.CFrame would follow my camera, but it instead was focused on a single point(the cameras starting position)

The solution is changing it to Enum.ListenerType.ObjectCFrame

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.