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

What does tostring do?

Asked by 8 years ago

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

1 answer

Log in to vote
2
Answered by
Perci1 4988 Trusted Moderation Voter Community Moderator
8 years ago

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
Ad

Answer this question