I’ve been trying to get a part that plays a sound for one player when they walk in a room,
and when they walk out the sounds stop playing. Since Server Scripts can’t play sounds
in the PlayerGui (I keep getting attempted to index ‘PlayerGui’ error), I put a Local Script
inside the PlayerGui and did “workspace.MusicPart.Touched:Connect(onTouch)”.
The problem is that the sounds play and stop for everyone, which I don’t understand how
that’s possible with a Local Script. Other than that it works just fine. I’d appreciate some help on this one.
Yeah, it’s an apartment building and it needs the sound to play for one person when touching it.
It works completely fine other than the fact it plays for everyone on the server despite it being a Local Script.
Thanks I’ll try checking it out. I’ve been searching for a while and still found no luck.
The last person I saw posting on this had this same issue but no response.
Anytime! Hopefully it should solve your issue as you and the OP of the post I sent both have the same issue, local script touched event causign sounds to play globally. I wish you good luck on trying to fix it!