Hitbox doesn't play sounds when it is touched

Exactly what the title implies. The sounds aren’t muted. The sounds are stored in a part that is anchored. Playback speed is normal. Distance is normal. Ran multiple checks to ensure that a humanoid, or player, is touching the part in order to play the sound. I’m using an RNG to play a random sound. Like this:

image

How is this possible that the sounds are not playing?

Check one of these 3 things

  • The volume of the sounds
  • The ID of the sound (whether it is uploaded)
  • The script it is being played in; it should be server script if everyone should here it
    If all of them are fine then maybe the sound didn’t load in yet. Try waiting for it to load

Some debugging could help us out here.

Put print(randomNumber) after the variable gets declared, and observe output.
Expected output would be that it shows a number between 1, 2 or 3.

Checked everything you listed. All are in correct order still yielding no results.

It prints the number, but no sound plays.

Solved my problem. No need to reply.

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