Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make a Textbox Answerslot?

Asked by 10 years ago

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?

01local Question = script.Parent.Question
02local Answer = script.Parent.AnswerBox
03local Start = script.Parent.TextButton
04 
05function onClick()
06Start.Visible = false
07Start.Active = false
08Answer.Visible = true
09Answer.Active = true
10Question.Text = "What is the name of the group you are applying to?(Caps Sensitive)"
11if Answer.Text == "FLASH Network" then
12Question.Text = "Who is the leader of this group?(Caps Sensitive)"
13if Answer.Text == "GianniFlash" then
14Question.Text = "What is the main fort called?"
15if Answer.Text == "Turmoil Pass" then
View all 27 lines...

1 answer

Log in to vote
0
Answered by 10 years ago

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

0
Can you explain the term "function scope"? GianniKun 40 — 10y
Ad

Answer this question