Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 9 years ago

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

Log in to vote
0
Answered by 9 years ago

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.

0
Thanks! brokenrares 48 — 9y
Ad
Log in to vote
-1
Answered by 9 years ago

Grammar

Answer this question