Print table in output

I don’t think that would work because it is not going to print “Much Code”, “Such works” or “Wow”

1 Like

That is because you can’t print a table.

@tnt_Dante It worked for me and it printed in the out put.

yes you can as @ QueriesFromADumbDev write and for me it worked same but for now its stopped working

Okay nvm then. Make a for loop and make it print each value in the table. For i, v loops are made specifically for table.

Maybe its a studio glitch try restarting it?

I restarted but didnt work and also I restart Studio Settings but still same result

Try writing the code:

for i, v in pairs(myTable) do
     print(v)
end)

Just so you know you also need to have the table with the code I just said.

2 Likes

try this

local mytable = [pizza, potato, chips]
for i, v  in pairs(mytable) do
print(i.."="..v)
1 Like


It printed I don’t know if its too small.

1 Like

Yes, this is how it should work. Really didn’t understand why its not working. Also it is proof that you can print table

My output window:
image
“Show tables expanded by default” → this is telling me that that should work and its implemented

1 Like

Have you made sure “Log Mode” isn’t on? you can find the option for it by clicking the 3 dots in top right corner of the output window.

44 Likes

THANK YOU VERY MUCH, now its working again. You are an Angel. Thank you

Also thanks everyone who joined this discussion :slight_smile:

Happy developing :slight_smile:

2 Likes

what exactly does log mode do?

Yeah, what does log mode do? I’m curious.

I did a google search and it says “Log Mode — Simplifies output by removing options such as expandable trees.”

6 Likes

that’s very interesting

I don’t see where I would need to use it but that explains why turning it off worked

1 Like

What the heck is an expandable tree tho?

you know that arrow in scripts and output that you can press/click and then they expand things or shrink them

that’s what that is

1 Like

Ohhhhhhhh that makes sense now, thanks.

1 Like