Can someone help me with Server-Client-Studio Sound Problem?
I made a thread recently about my problem, but I have changed how the script works,
https://scriptinghelpers.org/questions/26465/help-me-with-sound-working-on-studio-but-not-ingame
My problem is now that the script totally works in studio, but does not work in game.
The script is inside a part that is in workspace (if you need to know that)
I think that the problem comes as the sound is played on the server, but it fails to recognise the sound after the event was triggered (as if the sounds would remove after they were created)
This script was making the sound still play even after the sound instance was removed and even after roblox was closed (In previous version, I do not have the code) (we had to crash roblox (even if we closed it) in order to stop the song)
Here is my script:
01 | print ( "Loading Music thing" ) |
07 | local Music = Instance.new( "Sound" ) |
12 | for i,v in pairs (List) do |
13 | local m = Music:Clone() |
14 | m.Parent = script.Parent |
20 | m.Ended:connect( function () |
21 | if m.Name = = "Player" ..#List then |
22 | script.Parent [ "Player1" ] :Play() |
24 | script.Parent [ "Player" ..(i+ 1 ) ] :Play() |