I cannot figure out why this "list" has a syntax error?
Hello everyone! I am currently working on a script for my game that when a certain button is clicked. It will play a random song for the shop menu. I already know how to use math.random. But, I cannot figure out for the life of me, why this list isn't working. here is the errors I am getting. (Note: I don't receive any errors in the console, only script analysis.)
Errors with code:
https://imgur.com/a/cRx7rfS
2 | game.Workspace.Soundtrack.ShopSoundtrack.shopMusic_ 1 |
3 | game.Workspace.Soundtrack.ShopSoundtrack.shopMusic_ 2 |
4 | game.Workspace.Soundtrack.ShopSoundtrack.shopMusic_ 3 |
Explorer location:
https://imgur.com/a/HheZAeT
If anyone knows the reason and can help me out with this, that would be great. :)