NeonBlox
|
  |
| Joined: 19 Oct 2008 |
| Total Posts: 1462 |
|
|
| 10 Nov 2012 03:24 PM |
I'm trying to find the most efficient way to make a Chat GUI. This is the best way I've thought of.
Have a model in Workspace. Whenever someone chats, a StringValue gets inserted into that model. The value will be the message, and the name will be the player who said it. When a new StringValue is inserted into the model, it takes the data from it and displays it to everyone. After that, the value is removed.
I know there are better ways, I'd prefer a way that didn't use to many objects but using some is fine. I've used the method above before, can the chat wasn't as responsive as I had hoped. It also caused a little lag, the reason why I'm looking to a new method.
Thanks in advance! |
|
|
| Report Abuse |
|
|
|
| 10 Nov 2012 03:33 PM |
Make like 5 text boxes in the top left
then
do a
textbox1 = lalal
textbox2 = lalala
textbox3 = lalalal
textbox4 = lalal
textbox5 = lalalala
function Chatted(msg)
textbox4.Text = textbox5.Text
textbox3.Text = textbox4.Text
textbox2.Text = textbox3.Text
etc. then
msg = textbox1.Text
|
|
|
| Report Abuse |
|
|
|
| 10 Nov 2012 03:35 PM |
Have a few string values in a model in workspace. Then do something like this. Then change it from editing the hint, to editing a text GUI.
h = Instance.new("Hint", Workspace) game.Players.PlayerAdded:connect(function(Player) Player.Chatted:connect(function(msg) h.Text = Player.Name..": "..msg end) end)
|
|
|
| Report Abuse |
|
|