Hello scripting helpers.
I just made a script trying to print ONE line from the table and set that one line to the 5 values.
My script explains:-
QuestionValue = game.ServerStorage:WaitForChild("Question") -- Values
Answer1Value = game.ServerStorage:WaitForChild("Answer1") -- Values
Answer2Value = game.ServerStorage:WaitForChild("Answer2") -- Values
Answer3Value = game.ServerStorage:WaitForChild("Answer3") -- Values
QuestionID = game.ServerStorage:WaitForChild("QuestionID") -- Values
Questions = { -- As you see below, the ["1"] is [1], the "Question) ...." is [2] etc etc etc.
["1"] = "Question) What is the name of the dog in Garfield?"; "Odie"; "Fred"; "Steve",
["2"] = "Question) wat is 9+10?"; "21"; "19"; "1",
["3"] = "Question) am i good"; "yes?"; "no!"; "idk"
}
questionpicker = (Questions[math.random(1,#Questions)]) -- Picks a line
print(questionpicker) -- Prints the line
QuestionID = questionpicker[1] -- Sets the value to the line picked which is one.
QuestionValue = questionpicker[2] -- Sets the value to the line picked which is two.
Answer1Value = questionpicker[3] -- Sets the value to the line picked which is three.
Answer2Value = questionpicker[4] -- Sets the value to the line picked which is four.
Answer3Value = questionpicker[5] -- Sets the value to the line picked which is five.
if Questions.table["1"] then -- If the question is 1 then
print "question 1"
end
If that is not enough explanation, I will show you it by paint:-
http://oi58.tinypic.com/2cfw8k3.jpg
However, the script does not work. What is does is just print one thing like "21" and it does not set the values.
It also errors on line 22 and says:-
ServerScriptService.Script:22: attempt to index field 'table' (a nil value)
I hope you can help me with this script!
Thanks! Nathan.

2 comments
I actually know how to fix this, let me get on my computer.
Great! Thanks so much. :]