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

How should I play sounds without ServerStorage.Sound:Clone()??

Asked by
asadefa 55
5 years ago
Edited 5 years ago

I am trying to make an Instance.new() and asset loading script only. Using ServerStorage.Sound:Clone() is not reliable if somehow the sound is removed, or I copy the script to a different place. What is the fastest/most effective way to play sounds without ever calling the :Clone() method?

I think Instance.new("Sound", SoundPart) then setting the ID would be slow and take a long time. PreloadAsync() acts like wait(math.huge) to my experience, so that is out of the question. How would I play sounds without cloning anything

1
Have you tried a table of all your music ids then checking the table for the music you need? If the audio is played from one script, then youd just place the table there, otherwise id place it in a module script SerpentineKing 3885 — 5y
1
Why do you think instancing the sound then setting the ID would be slow and take a long time? There is nothing that should cause it to be slow. karlo_tr10 1233 — 5y

Answer this question