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

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

Asked by 6 years ago

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 :)

0
what? theCJarmy7 1293 — 6y
0
`TextLabel.Text = tostring(5)` TheeDeathCaster 2368 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

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!

Ad

Answer this question