Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I convert a number value to a string in a GUI?

I know theres the "tostring" function but I tried putting that in a variable but I need to change a TextLabel's text to contain that. Any way to do that?

Thanks :)

2 comments

0

what?

0

TextLabel.Text = tostring(5)

1 answer

✓ Accepted answer

You can do that by using this:

TextLabel.Text = tostring(theNumber) --Change "theNumber" to the number that you want to convert to a string.

Have fun scripting!

This discussion is preserved as it was. New answers, comments, and votes are closed.