I have a sound in the humanoidrootpart part of an npc with the following script inside the sound:
while task.wait(5) do
script.Parent:Play()
end
The sound does not make noise, but I can look at the time position and see that it does play. I can preview the sound and hear it fine. If I put the same sound ID into a sound and it will play. I’ve tried moving it into the torso, head, etc and haven’t gotten any progress.
Is this a local script or a server script? You cant hear it if its a local script.
Are you certain its the right sound and the sound?
Do a print to check if script.Parent is actually the sound.
Is anything changing the id? You should check that.
Where is it located? Is it actually in the part you think it is? Double check that.
What about volume? Is it loud enough? What about roll-off distance.
Let me know if youve done all of those but still cant hear it.
Make sure to check the sound properties and see if it could the RollOff Settings that could be the reason why you aren’t hearing anything. Also, make sure that the script.parent instance is actually there.
There’s an Issue in your code. The current code repeats every 5 seconds, so it would play the sound every 5 seconds again from the beginning
Userepeat task.wait() until task.wait(5).
This will wait 5 seconds before executing the code below it once, instead of every 5 seconds.
it is the right sound.
Adding a print does show that it is working.
no other script is affecting it.
it is definitely in the humanoidrootpart,
it is loud enough and the roll off distance is 9999.