I am extremely confused as to why these sounds do not play

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!

I would like it so when the remote event is called, the sounds in the handle play.

  1. What is the issue? Include screenshots / videos if possible!

The sounds in my tool do not play, even though the volume is normal and the asset ID works. I am trying to play them in a server script by using :Play(). I can’t record a video of this happening, but I will attach an image of the sounds in my tool if needed.

  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

I have searched, and have not found anyone else with this same question / issue.

  1. After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

I will now explain how my code is set up. I am trying to script a knife. In a local script in the tool, when a player presses their mouse button and then releases, a remote event in the tool is fired. It prints fired and everything on the client is done. On the server, I have this code for recieving it. (I know I could do tool.Activated on the server but I have a throwing mechanic for the knife as well. That is why I am using remote events.)

script.Parent.Events.Swing.OnServerEvent:Connect(function(player)
	script.Parent.Handle.Swing:Play() -- Is supposed to play the sound
	humanoid:LoadAnimation(script.Parent.Animations.Swing):Play() -- Plays an animation
end)

The animation plays but no sound can be heard. My roblox volume is at max, the sound’s volume is at max and the asset ID works. Now, I did try and see if it was the tool. It doesn’t play the sound in a normal part when touched either. Going into test mode on studio and pressing play then switching to the server and manually trying to play it does nothing. Im really stuck on this, so any help would be appreciated! I would also like to add that my game is not published and is saved on my computer instead.

Here is the Asset ID I was talking about: rbxassetid://153647529

Now, I am not sure if this is a bug or not, so if this is the wrong place I am sorry. This is my first post here, and I am new to the dev forum.

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.

Hello!
Could you please send us a photo of the Properties of the Sound? I think something might be wrong over there.

1 Like


Of course! Here it is. The only things cut off are Archivable and PlayOnRemove.
( I know I said the sounds volume was max, but I toned it back down to what it should be in game.)

1 Like

The properties tab seems all right.
If you are fine with exporting the whole tool (as a .rbxm file) and uploading it here, then I could look at the tool and test different possible soloutions and then get back to you with my results.
If you don’t feel confident posting the whole tool model on public in this post, then you can give it to me in Direct Messages as well!

1 Like

I’m fine with sending it here as I haven’t even began the damage code or throwing mechanics. At the moment, I just want to figure out why the sounds wont work.

(Sorry if the code is messy, it probably isn’t the best way to make this.)

knife_test.rbxm (7.2 KB)

2 Likes

Found the problem!

The problem was having the RollOfMinDistance set on 0. That caused the sound not being hearable.

I’ve noticed you have this setting applied on other sounds as well, so I recommend you changing that on the other sounds as well.

I was happy to help!
Have a nice rest of your day!

2 Likes

Thanks! I would have never figured it out if you hadn’t posted the answer here. Now, I can finally begin scripting the damage etc.

1 Like