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

Is this TextBox Answer GUI correct?

Asked by 9 years ago

I think the line "else wait(.2) repeat until" is wrong. Output isn't working, please help.

Question.Text = "What is the name of the group you are applying to?(Caps Sensitive)"
    if Answer.Text == "FLASH Network"
    else wait(.2) repeat until
        Answer.Text == "Flash Network" then
Question.Text = "Will this work?"
end
end

1 answer

Log in to vote
0
Answered by 9 years ago

No, you didn't. :P Let me show you;

Question.Text = "What is the name of the group you are applying to?(Caps Sensitive)"
if Answer.Text == "FLASH Network" then --The 'then' was supposed to go here :P
--Rest of coding
elseif Answer.Text ~= "FLASH Network" then --I used 'elseif' instead
repeat wait(1/44) until Answer.Text == "Flash Network" --This would've ran infinitly at once, and would crash the player, now fixed :P
end

Hope this helped!

Ad

Answer this question