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

How would I transfer data from a TextBox(GUI) and a StringValue?

Asked by 5 years ago

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?

1 answer

Log in to vote
0
Answered by 5 years ago

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
Ad

Answer this question