Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-2

Limit on Text changing?

Asked by
daricr 0
9 years ago

This script IS FUNCTIONAL, however, it only changes the text of the identifier on the first song, why?

Here's the script;

001print 'Loading Playlist'
002identifyer = game.StarterGui.header.textframe.musicidentifyer
003------------------------------------[[PLAYLIST]---------------------------------------------------------------------------------------------------------------------
004 
005song1 = "http://www.roblox.com/asset/?id=243372213" --insert the ID number after the "/?id="
View all 120 lines...

1 answer

Log in to vote
2
Answered by 9 years ago

StarterGui

You have made the unfortunate mistake of using the StarterGui instead of the PlayerGui. Repeat after me: "I will not change things in StarterGui"
Good boy.

If you need to change something in the StarterGui, you want to instead make sure that you're checking inside the PlayerGui (Which is obviously found in Player.PlayerGui incase you didn't know). Anything found under StarterGui can be found the same way under PlayerGui.


In your case, you can probably look at where you've put the script.

  • Is the Script in Workspace? Take it out of Workspace, it doesn't make sense.
  • Is the Script in StarterGui? Congratulations, your script is now in PlayerGui.
  • Is the Script anywhere else? Nobody should be hearing your sounds, and you need to put it somewhere different.

Given these details, you can now know how to access the TextLabel inside of PlayerGui instead of StarterGui.

0
Thank you! I made this into a Local Script in a separate script for text change and put it into Starter GUI! daricr 0 — 9y
Ad

Answer this question