Hey, I have a problem which when I use this script in online mode, the script (Sound/textlabel) just doesn't work at all. No Output, no sound, nothing.
Script Kind: Server Location: StarterGui.mynamesjeff(Screengui).Frame.Frame.Textlabel Game: https://www.roblox.com/games/975441184
Here's the code...
print 'Loading Playlist' song1 = "rbxassetid://181695709" song2 = "rbxassetid://1002810107" song3 = "rbxassetid://755156652" song4 = "rbxassetid://1125994936" song5 = "rbxassetid://527722497" song6 = "rbxassetid://181291142" song7 = "http://www.roblox.com/asset/?id=146812220" song8 = "http://www.roblox.com/asset/?id=142489916" song9 = "http://www.roblox.com/asset/?id=145579822" song10 = "http://www.roblox.com/asset/?id=145915908" song11 = "http://www.roblox.com/asset/?id=146180801" song12 = "http://www.roblox.com/asset/?id=148492408" print 'Creating a Source of Audio' local music = Instance.new("Sound") music.Archivable = true print 'Inspecting the Configurable Variables' music.Parent = script.Parent music.Pitch = 1 music.Volume = 1 music.Looped = false music.Name = "Player" print 'Loading RMP 1.0' while (true) do print 'Playing British India - Suddenly' script.Parent.Text = "Song: British India - Suddenly | ©21st Century's" music.SoundId = song4 music:play() wait(124) --2-- print 'Playing Avicii - Without You' script.Parent.Text = "Song: Avicii - Without You | ©21st Century's" music.SoundId = song2 music:play() wait(117) --3-- print 'Playing Imagine Dragons - Thunder' script.Parent.Text = "Song: Imagine Dragons - Thunder | ©21st Century's" music.SoundId = song3 music:play() wait(180) --4-- print 'Playing FMLYBND - Come Alive' script.Parent.Text = "Song: FMLYBND - Come Alive | ©21st Century's" music.SoundId = song1 music:play() wait(83) --5-- print 'Playing Killercats - Tell Me' script.Parent.Text = "Song: Killercats - Tell Me | ©21st Century's" music.SoundId = song5 music:play() wait(183) --6-- print 'Playing Keabs - Walk' script.Parent.Text = "Song: Playing Keabs - Walk | ©21st Century's" music.SoundId = song6 music:play() wait(123) --7-- print 'Playing Astro - Panda' script.Parent.Text = "Song: Astro - Panda | ©21st Century's" music.SoundId = song7 music:play() wait(122) --8-- print 'Playing Sound 8' music.SoundId = song8 music:play() wait(130) --9-- print 'Playing Sound 9' music.SoundId = song9 music:play() wait(130) --10-- print 'Playing Sound 10' music.SoundId = song10 music:play() wait(130) --11-- print 'Playing Sound 11' music.SoundId = song11 music:play() wait(130) --12-- print 'Playing Sound 12' music.SoundId = song12 music:play() wait(130) end
This script was to change the textlabel when a song goes up. If you have a solution or a question about this please reply to this quickly!
Is that a LocalScript
?
I've had such issues before, I had my coding put inside of a LocalScript. It worked in Studio, but not in Player. so what I did was I added Local
infront of the rows.
Example:
Local Song1 = 'rbxassetid://'
But don't add Local
to every row, only infront of the Song(number)
rows !
It might not help while it might help, I don't know completely.
PS: Thanks for adding Imagine Dragons - "Thunder", I love Imagine Dragons !
I've found that scripts that run on the server don't work in GUIs anymore. Try moving it to a LocalScript or move it to ServerScriptService.
Also, not apart of the fix, but I would suggest using a loop to cut down on your lines.