adspace44
|
  |
| Joined: 03 Jun 2011 |
| Total Posts: 477 |
|
|
| 15 Oct 2014 04:34 PM |
| I want a GUI that you are able to enter text in. How do you do that? |
|
|
| Report Abuse |
|
|
devTools
|
  |
| Joined: 06 Sep 2014 |
| Total Posts: 7950 |
|
|
| 15 Oct 2014 04:38 PM |
That's a TextBox. Don't use a TextLabel, just use a TextBox.
| devTools || Builder | Forumer | Beginning Scripter | Add 1.5k Posts | |
|
|
| Report Abuse |
|
|
adspace44
|
  |
| Joined: 03 Jun 2011 |
| Total Posts: 477 |
|
|
| 15 Oct 2014 04:47 PM |
| How would you make the input a variable? And then how would you access their leaderboard stats? |
|
|
| Report Abuse |
|
|
devTools
|
  |
| Joined: 06 Sep 2014 |
| Total Posts: 7950 |
|
|
| 15 Oct 2014 04:48 PM |
Well, I am new to scripting but what are you trying to make?
| devTools || Builder | Forumer | Beginning Scripter | Add 1.5k Posts | |
|
|
| Report Abuse |
|
|
adspace44
|
  |
| Joined: 03 Jun 2011 |
| Total Posts: 477 |
|
|
| 15 Oct 2014 04:50 PM |
| I WIJ like Mainframe, where admins can type in a trainee's name, and then the admins can add points to the trainee's leaderstats. |
|
|
| Report Abuse |
|
|
adspace44
|
  |
| Joined: 03 Jun 2011 |
| Total Posts: 477 |
|
|
| 15 Oct 2014 04:51 PM |
| *I and making WIJ like Mainframe, |
|
|
| Report Abuse |
|
|
|
| 15 Oct 2014 05:01 PM |
| Easy ill help you but first what stats would you like to be able to change ? |
|
|
| Report Abuse |
|
|
devTools
|
  |
| Joined: 06 Sep 2014 |
| Total Posts: 7950 |
|
|
| 15 Oct 2014 05:04 PM |
Welp I will try this I guess...
game -Workspace --Script(First) -Players -StarterGui -ServerStorage --GUI ---Frame ----TextBox ----Script (Second)(LocalScript?) --PointGUI ---Frame ----TextBox
-----First Script-----
function onPlayerEntered(newPlayer) if newPlayer.Name == "ADMIN_NAME" then a = game.ServerStorage.GUI:clone() a.Parent = newPlayer.PlayerGui end
game.Players.PlayerAdded:connect(onPlayerEntered)
---------------
-----Second Script-----
a = script.Parent.TextBox.Value if game.Players:FindFirstChild(a) then game.Players.a.LeaderBoard.PlayerStats.Points = script.Parent.Parent.PointGUI.Frame.TextBox.Value end
---------------
I hardly know much about scripting and little to none about Stats in the leaderboard so even though I know that this will NOT work, I wanted to try it out and see if anyone can point out some mistakes. No, I did not make this in studio. I made it on this forum, so there might be even more errors than I expect. Hm...
| devTools || Builder | Forumer | Beginning Scripter | Add 1.5k Posts | |
|
|
| Report Abuse |
|
|
adspace44
|
  |
| Joined: 03 Jun 2011 |
| Total Posts: 477 |
|
|
| 15 Oct 2014 05:25 PM |
@two above, just a leader stat called "Points"
and @above that helped somewhat lol |
|
|
| Report Abuse |
|
|
Roblok1
|
  |
| Joined: 27 Jul 2011 |
| Total Posts: 2019 |
|
|
| 15 Oct 2014 05:29 PM |
you can do a event used by the text box called 'FocusLost'. here is how you use it.
box.FocusLost:connect(function(IsEnterPressed)
if IsEnterPressed then
variable = box.Text
end
end)
i can't remember exactly what the event is called. may need to look at the object API. |
|
|
| Report Abuse |
|
|
adspace44
|
  |
| Joined: 03 Jun 2011 |
| Total Posts: 477 |
|
|
| 15 Oct 2014 06:20 PM |
| Got it all solved. Ty every1 |
|
|
| Report Abuse |
|
|