|
| 17 Mar 2014 10:25 PM |
how are custom chat bars activated?
like here : http://www.roblox.com/Concept-place?id=72437104
when you press / it lets you chat, Could i make it so a player can chat when he presses T ?
how do you force the player to write on a textbox basicaly? |
|
|
| Report Abuse |
|
|
|
| 17 Mar 2014 10:26 PM |
.KeyDown event(KeyUp event for "/") textbox:CaptureFocus() |
|
|
| Report Abuse |
|
|
|
| 17 Mar 2014 10:27 PM |
You can take my custom chat client from my models. The key used is the enter key in that, but it's really easy to change. You'd be looking in the LocalScript found within the ScreenGui.
There's a bit of work for you to do in terms of sending the chat to all the players, but that shouldn't be too hard. If you want, I can update it to make basic chat functionality. |
|
|
| Report Abuse |
|
|
|
| 17 Mar 2014 10:27 PM |
to send to all players for i,v in pairs (game.Players:GetChildren()) do --stuff end |
|
|
| Report Abuse |
|
|
|
| 17 Mar 2014 10:43 PM |
@Agent that would be great , would save lots of time to many people.
and thanks guys , case solved , :CaptureFocus() is all i was really looking for |
|
|
| Report Abuse |
|
|
| |
|
|
| 17 Mar 2014 11:05 PM |
and island no offence but that is a really poor way of doing it. I would rather send the chat data somewhere in workspace and have everyone's client Read that data. |
|
|
| Report Abuse |
|
|
robocu3
|
  |
| Joined: 13 Mar 2009 |
| Total Posts: 6485 |
|
|
| 17 Mar 2014 11:10 PM |
@Scriptulus please clarify, i'm interested in how you're doing this -=Robo=- |
|
|
| Report Abuse |
|
|
|
| 17 Mar 2014 11:11 PM |
| If you take a look at my custom chat model, you'll see I used a RemoteEvent. You can use the OnClientEvent event to send the data to all clients. Simply call RemoteEvent::FireAllClients to send the message to all connected clients. This also requires you to connect to the OnClientEvent from a LocalScript. |
|
|
| Report Abuse |
|
|
robocu3
|
  |
| Joined: 13 Mar 2009 |
| Total Posts: 6485 |
|
|
| 17 Mar 2014 11:22 PM |
awesome, i'll look into it :3 -=Robo=- |
|
|
| Report Abuse |
|
|