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: Custom chat bar

Previous Thread :: Next Thread 
Scriptulus is not online. Scriptulus
Joined: 05 Jul 2013
Total Posts: 912
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
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
17 Mar 2014 10:26 PM
.KeyDown event(KeyUp event for "/")
textbox:CaptureFocus()
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
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
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
17 Mar 2014 10:27 PM
to send to all players
for i,v in pairs (game.Players:GetChildren()) do
--stuff
end
Report Abuse
Scriptulus is not online. Scriptulus
Joined: 05 Jul 2013
Total Posts: 912
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
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
17 Mar 2014 10:45 PM
well,np:)
Report Abuse
Scriptulus is not online. Scriptulus
Joined: 05 Jul 2013
Total Posts: 912
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 is not online. 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
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
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 is not online. robocu3
Joined: 13 Mar 2009
Total Posts: 6485
17 Mar 2014 11:22 PM
awesome, i'll look into it :3
-=Robo=-
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