I am thinking of making an advanced voting system, where you type in the person's name instead of buttons. The only problem is that I can't figure out how I could get the Text from the Box to a StringValue, which then I can send to another box. Any ideas?
COMMUNITY QUESTION
How would I transfer data from a TextBox(GUI) and a StringValue?
1 answer
You can use a variable like this:
local frame = script.Parent -- Where frame for the TextLabel is.
local vote = frame.TextLabel.Text -- Then you should have the "vote" as what the text said. :)
print(vote) -- Look at output. If it says what you written in the box, then it works! -Toby
This discussion is preserved as it was. New answers, comments, and votes are closed.
