for example, I want to print something like
level (x)
with x being the number. I already have a value named x, and I want to show x in the output with text in front of it. Does anyone have a way to do this?
You can also separate values with commas (which also adds a space), like: print("level:", x) and if there's a lot of variables involved it's nice to know how to use string.format: http://lua-users.org/wiki/StringLibraryTutorial (Ctrl+F for "string.format"), ex: print(string.format("Level (%s/%s)", level, maxLevel))chess123mate5873— 7y