You can write your topic however you want, but you need to answer these questions:
- 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.
- 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.
- 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.
- 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.