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 put a value in text?

I know in Python you can do (example)

print ("The amount of seconds is:", seconds) -- and it will print The amount of seconds is: and then the value of seconds.

I have seen it been done in Lua before too using .. something .. I think but I can't remember. Thanks

1 answer

✓ Accepted answer
print ("The amount of seconds is: " .. seconds)

This is what you want to do.

3 comments

0

Ah, thanks.

1

The literal name of joining values to create a string is called string concatenation. Just wanted to put that out there.

0

Thanks, I may have know that from Computer science lessons, thanks anyway.

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