I am making it somewhat like a "Trivia" and they type the answer in the TextBox. But when they type the answer in the TextBox it doesn't do anything. Can someone help me with this script?
01 | local Question = script.Parent.Question |
02 | local Answer = script.Parent.AnswerBox |
03 | local Start = script.Parent.TextButton |
04 |
05 | function onClick() |
06 | Start.Visible = false |
07 | Start.Active = false |
08 | Answer.Visible = true |
09 | Answer.Active = true |
10 | Question.Text = "What is the name of the group you are applying to?(Caps Sensitive)" |
11 | if Answer.Text = = "FLASH Network" then |
12 | Question.Text = "Who is the leader of this group?(Caps Sensitive)" |
13 | if Answer.Text = = "GianniFlash" then |
14 | Question.Text = "What is the main fort called?" |
15 | if Answer.Text = = "Turmoil Pass" then |
All those local's up there are only visible in the function scope. Not the rest and definately not the function caller. If this doesn't help... the local's are the only thing that I see wrong. I can't really explain scopes that well but here is a REALLY quick explanation in the roblox wiki, copy and paste it, http://wiki.roblox.com/index.php?title=Scopes