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: Help on my GUI

Previous Thread :: Next Thread 
holden169 is not online. holden169
Joined: 11 Jul 2012
Total Posts: 185
31 Dec 2013 09:41 AM
I was just wondering how do you make something that you can type text in while you are playing the game? Kind of like Kohl's Command bar.
Report Abuse
Nyxis is not online. Nyxis
Joined: 15 Nov 2012
Total Posts: 3374
31 Dec 2013 09:45 AM
A TextBox

and

http://wiki.roblox.com/index.php/CaptureFocus

and

http://wiki.roblox.com/index.php/FocusLost
Report Abuse
holden169 is not online. holden169
Joined: 11 Jul 2012
Total Posts: 185
31 Dec 2013 09:50 AM
So you put both of those scripts in the same script or in two separate ones? And local script or regular script?
Report Abuse
Nyxis is not online. Nyxis
Joined: 15 Nov 2012
Total Posts: 3374
31 Dec 2013 09:52 AM
It's like..

..did you come here with no knowledge of what you want to do? -_-
Report Abuse
holden169 is not online. holden169
Joined: 11 Jul 2012
Total Posts: 185
31 Dec 2013 09:54 AM
Kind of new but yea. I'm sorry.
Report Abuse
Nyxis is not online. Nyxis
Joined: 15 Nov 2012
Total Posts: 3374
31 Dec 2013 09:58 AM
B = script.Parent.TextBox --or where ever the textbox is located
Mouse = game.Players.LocalPlayer:GetMouse()

Mouse.KeyDown:connect(function(K)
if K == "Something" then --I'll go figure out what the enter key is.
B:CaptureFocus()
end
end)

B.FocusLost:connect(function(enterPressed)
if enterPressed then
-stuff
end
end)

I think that's it, I'm writing in all in the reply.
Report Abuse
holden169 is not online. holden169
Joined: 11 Jul 2012
Total Posts: 185
31 Dec 2013 10:01 AM
Thank you.
Report Abuse
Nyxis is not online. Nyxis
Joined: 15 Nov 2012
Total Posts: 3374
31 Dec 2013 10:02 AM
B = script.Parent.TextBox --or where ever the textbox is located
Mouse = game.Players.LocalPlayer:GetMouse()

Mouse.KeyDown:connect(function(K)
if K:byte() == 13 then
B:CaptureFocus()
--stuff
end
end)

B.FocusLost:connect(function(enterPressed)
if enterPressed then
--stuff
end
end)
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