Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why the sound is heard only by the one who uses the tools?

I putted a sound instance into a script.When I press the tool, I can hear the sound, the tool works.When I'm ingame to test it with my friends, if they use it I can't hear the sound.Same goes for them.

local a = Instance.new("Sound")
a.SoundId = "http://www.roblox.com/asset/?id=170297200"
a.Parent = n
a.Volume = .7
function z(mouse)
	if debounce == false then
		debounce = true
			SlashSound:play()
			x = Instance.new("Part", Workspace)
			--The rest of code related to x

2 answers

✓ Accepted answer

You need to place the sound inside a block in the tool in order for your sound to be heard; if it is inside the script, which I am assuming is a localscript, it will only play for that player because it is client-side only.

1 comment

0

Thanks!

This discussion is preserved as it was. New answers, comments, and votes are closed.