isa_Khamdan Posted November 13, 2013 Share Posted November 13, 2013 Hello , I made a code that set the player name to a gui label but I am getting a little problem the name shows with the color codes so is there anyway to remove them before setting the label text? Link to comment
tosfera Posted November 13, 2013 Share Posted November 13, 2013 There is, someone did ask help for this earlier. Let me see if I can find his post. edit; these 3 will help you out; viewtopic.php?f=91&t=66886&p=628469&hilit=color+codes#p628469 viewtopic.php?f=91&t=66613&p=626270&hilit=color+codes#p626270 viewtopic.php?f=91&t=65730&p=619267&hilit=color+codes#p619267 Link to comment
isa_Khamdan Posted November 13, 2013 Author Share Posted November 13, 2013 There is, someone did ask help for this earlier. Let me see if I can find his post.edit; these 3 will help you out; viewtopic.php?f=91&t=66886&p=628469&hilit=color+codes#p628469 viewtopic.php?f=91&t=66613&p=626270&hilit=color+codes#p626270 viewtopic.php?f=91&t=65730&p=619267&hilit=color+codes#p619267 How can I use this " name:gsub ( "#%x%x%x%x%x%x", "" ) " to set a gui label to a player name without the color codes? I don't know how to use these gsub things Link to comment
Renkon Posted November 13, 2013 Share Posted November 13, 2013 In guiSetText, you can use instead of getPlayerName(), getPlayerName():gsub... Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now