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

How to get a sound to play but only the player can hear it, nobody else?

Asked by 5 years ago

I want to know how to get a sound to play, but only the player can hear it. I need help with this, because I am making a game and there is a transformation and when you transform I want a kind of music to play. Please help?

0
If the sound is played by a LocalScript, it's going to only play for the LocalPlayer, make sure the Sound is in workspace and fired by a ServerScript Ziffixture 6913 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

put the sound in the player object or, if you want 3d effects, make sure game.SoundService.RespectFilteringEnabled is enabled and create a local sound in the workspace. im only posting as an answer bc there's no code needed, hehe

0
Comment, I'm pretty sure in the next few you will be downvalued Ziffixture 6913 — 5y
0
its still the answer Gey4Jesus69 2705 — 5y
0
by put it in the player object you mean game.Players.LocalPlayer, right? SkyAlt33Vincent 2 — 5y
0
Placing it in the player object won't make it local. User#24403 69 — 5y
0
put it in startergui HappyTimIsHim 652 — 5y
Ad

Answer this question