generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: How to create a "Enter persons name here" GUI

Previous Thread :: Next Thread 
adspace44 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. adspace44
Joined: 03 Jun 2011
Total Posts: 477
15 Oct 2014 04:51 PM
*I and making WIJ like Mainframe,
Report Abuse
AhtnamasStudio is not online. AhtnamasStudio
Joined: 15 Jan 2014
Total Posts: 1104
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 is not online. 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 is not online. 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 is not online. 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 is not online. adspace44
Joined: 03 Jun 2011
Total Posts: 477
15 Oct 2014 06:20 PM
Got it all solved. Ty every1
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image