of     1   

spinywind
#183739496Tuesday, February 16, 2016 5:23 AM GMT

^ also how is it used?
cofunction
#183739550Tuesday, February 16, 2016 5:24 AM GMT

A magical place for storing things and many more features >:D Magic.
spinywind
#183739564Tuesday, February 16, 2016 5:25 AM GMT

What does the key word "table" do?*
spinywind
#183739589Tuesday, February 16, 2016 5:25 AM GMT

whats a string lol
myactivetestplace
#183739601Tuesday, February 16, 2016 5:25 AM GMT

spinywind
#183739743Tuesday, February 16, 2016 5:29 AM GMT

hmm i see but how is it used?
myactivetestplace
#183739799Tuesday, February 16, 2016 5:30 AM GMT

Well if everything in that table holds a value to represent something else then it can be manipulated into a game.
cofunction
#183739836Tuesday, February 16, 2016 5:30 AM GMT

A common use is just to store a bunch of things into it! for example: local players = {} --Empty Table for _, player in pairs (game.Players:GetChildren()) do --Loop through Players table.insert(players, player) --Inserts "player" into the tables player end Now you have a table of players.
spinywind
#183739843Tuesday, February 16, 2016 5:30 AM GMT

An entire game? If so can i have an example besides messages?
spinywind
#183739913Tuesday, February 16, 2016 5:32 AM GMT

Not to sound nooby but i never learned pairs or _, i know how to use for though. Lke iv said many times, im still a beginner.
myactivetestplace
#183739943Tuesday, February 16, 2016 5:33 AM GMT

Well.. Like... numbers = {1,2,3,4,5} if (numbers[1]) < 5 then print("Hello World")
spinywind
#183740013Tuesday, February 16, 2016 5:34 AM GMT

oh i understand. For example. It can detect the amount of players in a game and depending on that number, you can change values and what not. Am i correct?
myactivetestplace
#183740084Tuesday, February 16, 2016 5:36 AM GMT

You can have certain events that manipulate a table to create other events. for _,part in pairs(workspace.Model) do --so our variable is "part" and it represents everything in workspace.Model if part:IsA("BasePart") then --if "part" is a Part then part.BrickColor = BrickColor.new("Crimson")--make it red
spinywind
#183740135Tuesday, February 16, 2016 5:37 AM GMT

What does the Model do exactly in workspace.Model?
Aethex
#183740155Tuesday, February 16, 2016 5:38 AM GMT

a table is like this small platform (some are large, usually not too big) sometimes made of wood, stone, or metal (tons of materials like plastic too) there are different types of tables, usually people put stuff on them idk where you eat dinner, but if it's a platform with like one big leg in the middle or maybe like 4 legs or something on it then that's a table (probably) look up "pictures of tables" for more help
myactivetestplace
#183740168Tuesday, February 16, 2016 5:38 AM GMT

Do you mean what is a model?
spinywind
#183740201Tuesday, February 16, 2016 5:39 AM GMT

Well when you run "workspace.Model" Are you identifying something as the model. So it could be anything in workspace?
myactivetestplace
#183740225Tuesday, February 16, 2016 5:39 AM GMT

no pairs means children in (workspace.Model)
spinywind
#183740252Tuesday, February 16, 2016 5:40 AM GMT

oh. Cant you just locate the model and use GetChildren instead?
myactivetestplace
#183740310Tuesday, February 16, 2016 5:41 AM GMT

oh sorry it would actually be for _,part in pairs(workspace.Model:GetChildren()) do
spinywind
#183740357Tuesday, February 16, 2016 5:42 AM GMT

that makes a lot more since and then you just detect the part and change values and what not depending whether the part IsA Basepart or not.
myactivetestplace
#183740375Tuesday, February 16, 2016 5:43 AM GMT

Sorry you would actually have to add get children.
izzatnasruna
#183745433Tuesday, February 16, 2016 8:22 AM GMT

Number = {2,4,6,8,10} print(Number[2]) --4 ---------------- --[[ Example existing players: izzatnasruna Anaminus roblox builderman ]] local Players = game:GetPlayers() print(Players[1]) --izzatnasruna

    of     1