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

How comes only I can hear the sound?

repeat wait() until game.Players.LocalPlayer.Character

local Player            = game.Players.LocalPlayer
local Mouse             = Player:GetMouse()
enabled = true

Mouse.KeyDown:connect(function(key)
if not enabled then
        return
    end

if key == "r" then

enabled = false

local Sound = game.ReplicatedStorage.SOUND.Clash:Clone()
Sound.Parent = Player.Character.Torso
Sound:Play()

enabled = true
end
	end)

A Sound stored in a folder called "SOUND" in ReplicatedStorage is cloned and the clone is placed in to the Player's Torso and then Played, however only the Player that played the sound can hear it and other players next to him in-game cannot.

This never used to happen and I have no idea why it suddenly occurred, please help.

3 comments

1

Try changing it to a normal script... I think local scripts would only make the sound on your client.

1

If your game is F.E Enabled then that might be the cause of it.

0

Nah it's not.

1 answer

✓ Accepted answer

Sounds played/created in localScripts only play on the client that played it. Sounds played in Workspace will be heard by everyone. You could use a ServerScript to clone the object into the Torso and if that doesn't work, weld a part to the torso. Hope this helped!

2 comments

0

Wow, that's pretty much what I said...

0

The I solved it with a simple "wait()" but I'll accept it.

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