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: What is the best Chat GUI Method?

Previous Thread :: Next Thread 
NeonBlox is not online. 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
Sharpshooter26 is not online. Sharpshooter26
Joined: 26 May 2010
Total Posts: 5166
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
unholysoda is not online. unholysoda
Joined: 15 May 2010
Total Posts: 9024
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
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