Log in to vote
0

# How to fix an audio glitch with my script?

Asked by 7 years ago

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()

0
Simple just use a LocalScript. woodengop 1134 — 7y
0
Do not delete your Questions, if you are willing to get an answer. woodengop 1134 — 7y
0
I delete them after i get my answers alaingomez100 0 — 7y
0
Some people will have the same questions, so please do not Delete them. woodengop 1134 — 7y
View all comments (2 more)
0
ok alaingomez100 0 — 7y
0
And if a Question does workout, then Accept the answer(the check mark right next to report to staff) woodengop 1134 — 7y

### 1 answer

Log in to vote
-1
Answered by 7 years ago

Use a local script

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 alaingomez100 0 — 7y
0
oh idk just wait until someone answers your question. And i was just asking if it was in a local script. Ewarr1011 0 — 7y
0
Ewarr you have to explain why you have to use a LocalScript. woodengop 1134 — 7y