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

What does tostring do?

I have seen tostring in some scripts and I would like to know what it does and how it is used.

1 answer

✓ Accepted answer

If you don't know what something does, the first thing you should always do is look it up on the Roblox wiki!

But basically, tostring converts its argument (of any type) into a string.

local num = tostring(3)
print( type(num) ) --> string

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