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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 11 Jul 2012 |
| Total Posts: 185 |
|
|
| 31 Dec 2013 09:54 AM |
| Kind of new but yea. I'm sorry. |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 11 Jul 2012 |
| Total Posts: 185 |
|
| |
|
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 |
|
|