Is there a limit to tables?

I have a table with a TON of strings, almost 100 and im adding more. im curious of there is a limit to the amount of data that can be in a table?

4 Likes

Uh, no. You’re definitely not going to reach a “limit” with 100 strings. You have PLENTY of room.

The limit is mostly likely how much memory was allocated to the program, and that’s probably A LOT of memory. You’re definitely good.

yippeeeeeeee

i wanna add you to the table now hold on

1 Like

done
image
lol im making a table with messages for the loading screen

3 Likes

Bro have so many strings in this table its insane

what are you even trying to make??!?!?!?!? :ohmy: :ohmy: :ohmy: :ohmy:

its a table of messages that will be able to appear during the loading screen. i wanna add a lot so its REALLY random

and so they dont get repetitive

1 Like

You need help with that lol???

1 Like

how would you really help? its just random stuff i come up with… like heres an eample:

image

Thanks, you’re probably never going to be able to fill up that table and run out of memory, but the script may get laggy.

No lag so far! although im really running outta ideas to add…

1 Like

WHY DO YOU HAVE SO MANY STRINGS

Mark this post as a solution already, it’s getting off topic

Since Roblox runs 64 bit, you could store 4.2 gbs on info on a table, for reference you could put a text inside a notepad file and see how large that would be (wouldn’t know why you need that much…)

This isn’t true @Vortexuel560, run this code and see. It can go WAYYY further. And as I said previously, all the way up to the memory limit, most likely.

local b = {} for i = 1, 100_000_000 do if i % 50000 == 0 then task.wait(); print(i) end table.insert(b, 1) end

This line proves it, it gets all the way up to 67.1k, on my end. I wish people would stop posting false information :(.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.