So, I have a Setup GUI. When the user clicks confirm I want that data to be stored somewhere so they can be displayed at a later stage.
So the GUI http://prntscr.com/2tlgq1 will take the user input from Team Name and display it in the next GUI http://prntscr.com/2tlh62. My question is "How will I go about doing this?" and "What functions are needed?" I used to have an old code which didn't work. But my Roblox Studio crashed when I had finished it and I was unable to save it. I hoping someone on Scripting Helpers would know what to do.
You would take the text of the first item:
teamName = teamName.Text
Then you would take the second item:
Abv = abbreviation.Text
You would combine them under a button click event:
1 | confirm.Button 1 Down:connect( function () |
2 | teamName = confirm.Parent.teamName.Text |
3 | Abv = confirm.Parent.abbreviation.Text |
4 | --Your code here for making the next gui |
5 | NewScreenGui.Frame.teamName.Text = teamName |
6 | NewScreenGui.Frame.abbreviation.Text = Abv |
7 | end ) |
Of course that would be with these data structures:
(This is the one with the confirm button)
1 | ScreenGui |
2 | -Frame |
3 | -teamName |
4 | -abbreviation |
(This is the one that you want to put the stored data into)
1 | NewScreenGui |
2 | -Frame |
3 | -teamName |
4 | -abbreviation |
I hope this helps.