If I parent a sound into an object say a sword or some projectile it doesn’t play unless my camera is rotated away from it and it is off screen.
Is this normal behavior?
If I parent a sound into an object say a sword or some projectile it doesn’t play unless my camera is rotated away from it and it is off screen.
Is this normal behavior?
Hi Cetharis, could you upload a .rbxl file demonstrating this issue? Are you using Lua to create and parent the sound, or the editor?
Some more questions: Is your object inside the player or camera? What camera mode are you using? What is the MaxDistance of the Sound?
local x=Instance.new("Part")
x.Parent=workspace x.CFrame=workspace.Cetharis.HumanoidRootPart.CFrame+workspace.Cetharis.HumanoidRootPart.CFrame.lookVector*5
x.Anchored=true
local sound=Instance.new("Sound")
sound.SoundId="rbxassetid://507251968"
sound.Parent=x
sound:Play()
if the part is off screen I will hear the alarm sound.
if the part is on screen it doesn’t play
Thanks
Hi Cetharis, how are you triggering this script? I am not reproducing the problem in Studio using either Play or Test and running the script either as Workspace Script or by entering it into the command bar. I modified your script to use the my player name.
It helps if you create a basic .rbxl repro file (empty baseplate with just this script, which demonstrates the issue), as this removes potential miscommunication/confusion.
Okay So I have attached a place file and you just press play.
WorkspaceParentedSounds.rbxl (12.5 KB)
wait(2)
local Player=game.Players.LocalPlayer
local Character=Player.Character
local RootPart=Character:WaitForChild(“HumanoidRootPart”)
local x=Instance.new(“Part”)
x.Parent=workspace x.CFrame=RootPart.CFrame+RootPart.CFrame.lookVector*35
x.Anchored=true
local sound=Instance.new(“Sound”)
sound.SoundId=“rbxassetid://507251968”
sound.Parent=x
sound:Play()
local Camera=workspace.Camera
while wait(1) do
Camera:PanUnits(15)
end
Thanks Cetharis. Unfortunately I am still unable to reproduce in both Mac and Windows. When did you observe this start happening? Is it from the most recent update, or from a few weeks ago? If you can give a precise date that will be helpful.
Maybe you can try it zoomed in?
When my camera looks at the object. It no longer gives any sound off until the camera is rotated to the point I can’t see it. I am using a Windows computer but it’s been like this for over a year. I notice it in other games as well. Does the alarm sound continue to play even while you look at the part?
I tried your test and was not able to repro. I did notice that the sound was louder as my camera got physically closer to the part. Is it possible that your volume is low enough to only hear the sound when it is loud enough, from your camera being closer because it is between your character and the object?
If not, I’d love to see video of this bug. It sounds fascinating.
Never did a youtube video before. I wonder if there are any recommendations for video recording software? XD
In the video you can see the issue I am having.
OBS is a good recording software, and Shadowplay is better if you have an NVIDIA card.
Hi Cetharis, thanks for the video. Could you give me some information about your system - version of windows, make/model of computer, sound hardware? Have you tried on other systems?
Also, if you make multiple sound-generating Parts, do they each independently lose sound when not visible?
Hi Cetharis, I am wondering if your PC might have surround sound support, either in HW or simulated, and the center channel is being dropped. Can you please take a look at your sound settings and let me know what playback devices you have selected and how many speakers they have, and if you have a virtual surround feature and if it is on or off. Also, could you run msinfo32 and export your system information for me?
Yo, they gain sound when you don’t look at them and lose it when you see it.
I tried on a few different computers and they all have the same issue. My S8+ worked though. Is there a way you can send this to a “QA” team to replicate? It’s a bit much to send all that info, I haven’t heard much about any of that surround sound support or simulated stuff at all. I use Windows 8.1 but I am not super tech savy with sounds. I just do default on my computer, the built in stuff. so I am sure some other players who just play the game would have similar issues.
I was finally able to reproduce this while working on another bug.
Create a Part, add a Sound underneath it, set the Sound to Playing and Looped.
Set the MaxDistance to a moderately small value like 40.
Set the RollOffMode to Linear.
Play Solo and, while facing the Part, move the player to be just outside of the radius where the Sound can be heard.
Now when you rotate the Sound will be heard roughly when the Part cannot be seen.
The cause is that the listening position is from the camera location, not the player.
Rotating the view moves the camera back within MaxDistance of the part, causing the Sound to be heard.
This behavior is as-designed, but that is not to say the design is necessarily intuitive or good.
I’d be welcome to hear suggestions on how to improve it.
Thanks again for reporting the issue.