Vaccam
|
  |
| Joined: 20 Aug 2013 |
| Total Posts: 2545 |
|
|
| 20 Jan 2014 12:38 PM |
http://www.roblox.com/Simple-Chat-System-v1-1-item?id=142824249
Simple look but much more functionable than roblox's chat gui! |
|
|
| Report Abuse |
|
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
| |
|
|
| 20 Jan 2014 01:00 PM |
1: RemoteEvent 2: LocalScript 3: Tables |
|
|
| Report Abuse |
|
|
|
| 20 Jan 2014 01:01 PM |
4: RemoteFunction
Cant forget the RemoteFunction! |
|
|
| Report Abuse |
|
|
Vaccam
|
  |
| Joined: 20 Aug 2013 |
| Total Posts: 2545 |
|
| |
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 20 Jan 2014 01:03 PM |
| Please go to the "I Made That" sub-forum and do not reply here any further. |
|
|
| Report Abuse |
|
|
|
| 20 Jan 2014 01:07 PM |
There is a script which gets when a player chats and adds it to a table (Along with the color and whatnot) When a client joins/respawns their LocalScript calls a RemoteFunction to get a duplicate of the table of current chat messages. When a player chats, their message and color and stuff are added to the table, and the RemoteEvent is called on every player with the new table of chat messages/the new chat message + color + whatever and they do it themselves. You then take the tables and stuff and create the GUI elements with it. |
|
|
| Report Abuse |
|
|
|
| 20 Jan 2014 01:44 PM |
@Not
Why is the RemoteFunction necessary? Isn't it just better to use FireClient() with the RemoteEvent for that or am I missing something here? |
|
|
| Report Abuse |
|
|
|
| 20 Jan 2014 01:51 PM |
| Hmm... You have a fair point there. I just think it makes it look... cleaner. |
|
|
| Report Abuse |
|
|
|
| 20 Jan 2014 02:11 PM |
Well, it probably leaves out an if statement anyways.
I just wanna know though :(. |
|
|
| Report Abuse |
|
|
|
| 20 Jan 2014 02:14 PM |
I chose RemoteFunction for this reason:
RemoteFunction.onClientInvoke = function() return tableOfChat end |
|
|
| Report Abuse |
|
|
| |
|
|
| 20 Jan 2014 02:17 PM |
| Huh, that explains why on the wiki it says the InvokeClient and InvokeServer return "Tuple". |
|
|
| Report Abuse |
|
|
|
| 20 Jan 2014 02:17 PM |
| Well what do you think functions are for? |
|
|
| Report Abuse |
|
|
|
| 20 Jan 2014 02:20 PM |
| Well, instead of using return I just sent the value back as a parameter with Invoke..(Whatever). |
|
|
| Report Abuse |
|
|
Vaccam
|
  |
| Joined: 20 Aug 2013 |
| Total Posts: 2545 |
|
|
| 20 Jan 2014 02:27 PM |
I don't like using events
Cause i've ran into problems when you overload them
My system is much more simple... |
|
|
| Report Abuse |
|
|
| |
|