What are the possible uses of Table?

So I’m kinda new to the scripting world(Like 2 months) and I am trying to get good day by day.

And I have reached a bit of an advanced level and here I have a doubt.

What is the use of tables?
I have only used tables to check the number of users in the game so I can say that there is enough players for the game to start.

So I searched in the dev forum for a post that is similar to mine. But Nope there wasn’t(Or I couldn’t find one)

What could be the other uses of tables?

Can they be used in Datastores?
Can they used for storing a Random player inside it?
Or is there anything more usefull?

Any help would be appriciated! :smiley:

Welcome! Tables are collections of anything.

Read this to start.

2 Likes

Thanks this was very helpfull! :smiley:

So a TweenInfo is also a table right

local doorTweenInfo = tweenInfo.new{
                                   1
                                   Enum.EasingStyle.Bounce
                                   Enum.EasingDirection.In
                                   ---- Other things 
                                    }  
   

TweenInfo is it’s own independent datatype added by Roblox, under the hood it’s a userdata which are very similar to tables.

1 Like

@ReturnedTrue is correct, but also note that the argument to TweenInfo.new is indeed a table.

1 Like

False, as the api-reference states the TweenInfo.new constructor takes a tuple of arguments.

1 Like

I stand corrected, thanks.

1 Like