Answered by
2 years ago Edited 2 years ago
Method 1: Using the (New) Output Window (Recommended)
It is likely that Log Mode is turned on in the Output window. Make sure to turn it off. Here is how:
- Go to the three dots button at the top right of the Output window.
- Make sure the Log Mode option is unchecked.
- Play your game in Studio again. This time, the table and its contents will be printed in a nice format.
Here is a GIF of the first two steps I have mentioned above.
https://www.imgur.com/3k9gwO2
Method 2: The "Old Way"
If you want to perhaps define your own format of printing tables, consider using a for
loop, like this:
11 | local Randomizer = math.random( 1 , 3 ) |
12 | table.insert(TablePrint, i, Decisions [ Randomizer ] ) |
17 | for index, decision in ipairs (TablePrint) do |
19 | print (index .. ": " .. decision) |
Note that this change only applies to tables that use numbers as indexes. However, I still recommend Method 1 because it eliminates the need to make those changes by using Studio's built-in tools.
If this answer solves your problem, make sure to accept it by clicking on the "Accept Answer" button. :)