local songs = {
2147587209,
371814999,
213130285,
2905042651,
744874281,
185740716,
3407360679,
231717956,
2014296322,
2602175217
}
local name = {
"Dance Pop It Don't Drop It",
"Super Smash Bros. Melee - Fire Emblem",
"Super Smash Bros. Melee - Hyrule Temple",
"Super Smash Bros. Melee - Break the Targets",
"Mario Kart Wii - Coconut Mall",
"Super Smash Bros Brawl - Meta Knight's Revenge",
"Super Mario 3D World - World Bowsers",
"Super Smash Bros. Brawl - Waluigi Pinball",
"Super Smash Bros. Brawl - Main Theme",
"Super Mario Galaxy 2 - Theme of Super Mario Galaxy 2"
}
local SoundService = game:GetService("SoundService")
local sound = Instance.new("Sound")
while true do
local n = math.random(1,#songs)
sound.SoundId = "rbxassetid://"..songs[n]
script.Parent.Text = name[n]
SoundService:PlayLocalSound(sound)
sound.Ended:Wait()
wait(1)
end
I put it on LocalScript. However, sounds are playing mess. What is the problem?