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

How do i make a local music player?

Asked by
CjayPlyz 643 Moderation Voter
5 years ago

i have gui which plays music but how do i make it so that only the the client who click "play" can hear it, i know how remote event works and it did work but i don't know if it only plays on the client

0
if you put a sound on the client it only plays for that player User#20388 0 — 5y
0
so if i put it in the player gui or starter gui it will only play on the player? CjayPlyz 643 — 5y

1 answer

Log in to vote
1
Answered by
LeadRDRK 437 Moderation Voter
5 years ago

First, you must make sure that the game is Filtering Enabled.If it’s not, the sound played on the client will always replicate to everyone else. Secondly, you do not need RemoteEvent or such things that communicate with the server; Guis are driven by the client itself, you wouldn’t need to use them

With that all set, you could connect the MouseButton1Click event to a function that plays the sound from a localscript and you’re all done! The music should play on the client now.

0
thanks for the info :) CjayPlyz 643 — 5y
Ad

Answer this question