Attack sound not playing when tool is activated

I have a script that will play a slashing sound when the player activates a tool but for whatever reason, the sound refuses to play while other sounds for different abilities play without issue.

The first attack at the start of the clip is the one that should have a sound attached to it btw

image

image

I’ve tried reparenting the sound, rewriting the script multiple times, changing the variable, etc
not sure what I am doing wrong atm

2 Likes

The sound has to be inside the part in order for it to play (Handle).

I assumed that was the issue at first as well but even after putting the sound inside of the handle it doesn’t play any sound

Add a print before and after you play the sound, if both print, the sound might be an issue.

I have also experienced this, try this in a live server instead as studio might be buggy sometimes.

Don’t use WaitForChild it will yield instead use FindFirstChild ok don’t I forgot this was a tool

Why? It will yeild until the sound is found. its not a problem

This is a client-sided tool, the client relies on WaitForChild for the instances to replicate.
FindFirstChild is to check if something exist, and in your case you are using it wrong.

Are you sure the sound has a volume higher than 0, and it has a soundId?

It will yield until it has been found, if it yields for more than 5 seconds (which is default, unless you add a second parameter), all it will give is a warning.

I just tried printing before and after the sound plays and both work yet the sound doesn’t play still, should I try using a different sound?

Try it in a live server first.

Yes
image

Press the play button. If you don’t hear a sound its a issue with the actual sound id

Playing the sound manually still plays a slashing sound which is why I’m so confused because as far as I know it should be working and I’m not getting any errors

Just tried launching a local server (assuming thats what you meant im not well oriented with studio) and no sound there either

it does work the sound works perfectly

Tool.Activated:Connect(function()
	Sound:Play()
end)

Check your volume in-game, if that’s not the issue then I’m not sure as everything else is set up correct.

The volume is up, I was able to hear this noise when this big black thing opened up.

Like a portal or something. I am not sure though.

my volume is almost at max if you watch the video in the original post when I use one of the ability scripts the sound for that one plays