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...
01 | print 'Loading Playlist' |
02 |
03 | song 1 = "rbxassetid://181695709" |
04 | song 2 = "rbxassetid://1002810107" |
05 | song 3 = "rbxassetid://755156652" |
06 | song 4 = "rbxassetid://1125994936" |
07 | song 5 = "rbxassetid://527722497" |
08 | song 6 = "rbxassetid://181291142" |
09 | song 7 = "http://www.roblox.com/asset/?id=146812220" |
10 | song 8 = "http://www.roblox.com/asset/?id=142489916" |
11 | song 9 = "http://www.roblox.com/asset/?id=145579822" |
12 | song 10 = "http://www.roblox.com/asset/?id=145915908" |
13 | song 11 = "http://www.roblox.com/asset/?id=146180801" |
14 | song 12 = "http://www.roblox.com/asset/?id=148492408" |
15 |
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:
1 | Local Song 1 = '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.