How do I make a sound that plays separately for each individual player?
I've already found a somewhat cheap way to do this. I inserted an invisible uncollidable part and inserted the following script:
08 | local g = game:GetService( "Players" ) |
10 | local h = g:findFirstChild(hit.Parent.Name) |
12 | if debounce = = false then h.PlayerGui.Folder.Music 2 :Stop() end |
13 | if debounce = = false then h.PlayerGui.Folder.Music:Play() end |
18 | script.Parent.Touched:connect(T) |
There's a folder inside startergui that has all the music files I need. It stops all other music and starts up the one to be played.
This method works, but I'm searching for a better one. Please Help.