It's really unorganized and ineffecient. Plus, it doesnt work.
songs = {179712592,235855135,181547615,143959455,215733323}
a179712592 = "All About That Bass"
a235855135 = "See You Again"
a181547615 = "Centuries"
a143959455 = "Turn Down For What"
a215733323 = "Watch Me"
Model = script.Parent
Music = Model.Music
while wait() do
Music.SoundId = (math.random(#songs[5]))
wait(Music.TimeLength)
if Music.SoundId == 179712592 then
function processCommand(speaker, message)
if message == string.lower("All About That Bass") then
print(speaker.Name.."has won this round!")
end
end
end
end
What I want it to do:
- Play a random song from the "songs" table
- Detect if a player chats the name of the song (uppercase, lowercase, or any combination)

2 comments
Did you define the chatted event?
I dont think so.