Why doesn't my script work in the real roblox game but work in testing?
Asked by
8 years ago Edited 8 years ago
001 | local MusicText = script.Parent.MusicText |
003 | song = script.Parent.Song |
004 | song 2 = script.Parent.Song 2 |
005 | song 3 = script.Parent.Song 3 |
006 | song 4 = script.Parent.Song 4 |
007 | song 5 = script.Parent.Song 5 |
008 | song 6 = script.Parent.Song 6 |
009 | song 7 = script.Parent.Song 7 |
010 | song 8 = script.Parent.Song 8 |
011 | song 9 = script.Parent.Song 9 |
012 | song 10 = script.Parent.Song 10 |
013 | song 11 = script.Parent.Song 11 |
014 | song 12 = script.Parent.Song 12 |
015 | song 13 = script.Parent.Song 13 |
016 | song 14 = script.Parent.Song 14 |
017 | song 15 = script.Parent.Song 15 |
018 | song 16 = script.Parent.Song 16 |
019 | song 17 = script.Parent.Song 17 |
020 | song 18 = script.Parent.Song 18 |
021 | song 19 = script.Parent.Song 19 |
025 | if (playing = = false ) then |
027 | MusicText.Text = "Timber - Pitbull (Played by Server)" |
035 | if (playing = = false ) then |
037 | MusicText.Text = "Calvin Harris - This Is What You Came For (Played by Server)" |
045 | if (playing = = false ) then |
047 | MusicText.Text = "Major Lazer ft. Justin Bieber & MØ - Cold Water (Played by Server)" |
055 | if (playing = = false ) then |
057 | MusicText.Text = "Sia - Cheap Thrills (Played by Server)" |
065 | if (playing = = false ) then |
067 | MusicText.Text = "The Chainsmokers ft. Halsey - Closer (Played by Server)" |
075 | if (playing = = false ) then |
077 | MusicText.Text = "Zara Larsson - Lush Life (Played by Server)" |
085 | if (playing = = false ) then |
087 | MusicText.Text = "Hailee Steinfeld - Love Myself (Played by Server)" |
095 | if (playing = = false ) then |
097 | MusicText.Text = "Stand By You - Rachel Platten (Played by Server)" |
105 | if (playing = = false ) then |
107 | MusicText.Text = "twenty one pilots - Heathens (Played by Server)" |
115 | if (playing = = false ) then |
117 | MusicText.Text = "Justin Timberlake - Can't Stop the Feeling (Played by Server)" |
125 | if (playing = = false ) then |
127 | MusicText.Text = "Treat You Better - Shawn Mendes (Played by Server)" |
135 | if (playing = = false ) then |
137 | MusicText.Text = "Charlie Puth ft. Selena - We dont talk anymore (Played by Server)" |
145 | if (playing = = false ) then |
147 | MusicText.Text = "One Call Away - Charlie Puth (Played by Server)" |
155 | if (playing = = false ) then |
157 | MusicText.Text = "Justin Bieber - Sorry (Played by Server)" |
165 | if (playing = = false ) then |
167 | MusicText.Text = "Maroon 5 - Animals (Played by Server)" |
175 | if (playing = = false ) then |
177 | MusicText.Text = "Jacob Sartorius - Sweatshirt (Played by Server)" |
185 | if (playing = = false ) then |
187 | MusicText.Text = "Ariana Grande - Into You (Played by Server)" |
195 | if (playing = = false ) then |
197 | MusicText.Text = "Jacob Sartorius - Hit Or Miss (Played by Server)" |
205 | if (playing = = false ) then |
207 | MusicText.Text = "Justin Bieber - What Do You Mean? (Played by Server)" |
I have tried searching up on this and have done changes to my script like changing my script to a local script (Which made the script not functional) and many more. But it still doesn't work.
Trying to make a music player but it only plays the first music then stops after the first music finishes in the actual game. However in testing, it plays all the music just fine.