Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to fix an audio glitch with my script?

This script is a music script I use , but if I'm in the game and someone else joins while the 2nd song is playing they hear the first song playing at the same time as the 2nd song is playing . How do I fix this?

ID = 'SONG1'
Music=Instance.new("Sound" ,Workspace)
Music.Name = "Music"
Music.SoundId = "http://roblox.com/asset/?id=(SONG ID)"
Music:Play()
wait (125)
Music:remove()

ID = 'SONG2'
Music=Instance.new("Sound" ,Workspace)
Music.Name = "Music"
Music.SoundId = "http://roblox.com/asset/?id=(SONG ID)"
Music:Play()
wait (125)
Music:remove()

6 comments

0

Simple just use a LocalScript.

0

Do not delete your Questions, if you are willing to get an answer.

0

I delete them after i get my answers

0

Some people will have the same questions, so please do not Delete them.

0

ok

0

And if a Question does workout, then Accept the answer(the check mark right next to report to staff)

1 answer

Use a local script

3 comments

0

One problem with that is that I want everyone to listen to the same song at the same time , and since I have a Surface GUI that tells the song names , i need it to be synced with the music script

0

oh idk just wait until someone answers your question. And i was just asking if it was in a local script.

0

Ewarr you have to explain why you have to use a LocalScript.

This discussion is preserved as it was. New answers, comments, and votes are closed.