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 » Scripters
Home Search
 

Re: Force Hidden Chat?

Previous Thread :: Next Thread 
MightyDantheman is not online. MightyDantheman
Joined: 06 May 2011
Total Posts: 5108
11 Jun 2016 02:00 PM
How would I force the chat to be hidden for all players. I'm trying to make a custom chat that only some players will be able to see.


~MightyDantheman
Report Abuse
Soybeen is not online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
11 Jun 2016 02:12 PM
game:GetService('StarterGui'):SetCoreGuiEnabled(Enum.CoreGuiType.Chat, false)


Report Abuse
MightyDantheman is not online. MightyDantheman
Joined: 06 May 2011
Total Posts: 5108
11 Jun 2016 02:14 PM
Thank you. Is there possibly a way to hide bubble chat instead? If not, then this will work.


~MightyDantheman
Report Abuse
LegendaryAccount is not online. LegendaryAccount
Joined: 02 Jun 2010
Total Posts: 13193
11 Jun 2016 02:15 PM
to hide chat bubble its not ingame but rather in the games settings


Report Abuse
Pxkez is not online. Pxkez
Joined: 24 Sep 2015
Total Posts: 1066
11 Jun 2016 02:15 PM
Just configure game chat and make it Chat Box only
Report Abuse
MightyDantheman is not online. MightyDantheman
Joined: 06 May 2011
Total Posts: 5108
11 Jun 2016 02:17 PM
Alright, let me explain myself a little better.

I want players to be able to type something into the chat, but nothing appear in the chat history (top left) or bubble chat. I want this so that I can have a custom chat history and bubble chat that's only visible to certain players.

Basically, I want to force team chat in a sense.


~MightyDantheman
Report Abuse
Pxkez is not online. Pxkez
Joined: 24 Sep 2015
Total Posts: 1066
11 Jun 2016 02:19 PM
use a textbox and make it so that it uses CaptureFocus() and FocusLost to create a message

for example


local Mouse = game.Players.LocalPlayer:GetMouse()
Mouse.KeyDown:connect(function(Key)
if Key == "/" then
script.Parent.TextBox:CaptureFocus()
script.Parent.TextBox.Text = ""
end
end)

script.Parent.TextBox.FocusLost:connect(function(entered)

end)
Report Abuse
Soybeen is not online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
11 Jun 2016 02:20 PM
You will have to make your own system for this, 100%.

I'm sure that by disabling chat altogether, it will remove the bar you use to chat anyways. You can't make the traditional Bubble chat only appear for some.


Report Abuse
MightyDantheman is not online. MightyDantheman
Joined: 06 May 2011
Total Posts: 5108
11 Jun 2016 02:22 PM
But can you remove bubble chat for all as well as chat history? I can make the custom stuff, but I need the old stuff removed, with the exception of players being able to type in a message.


~MightyDantheman
Report Abuse
MightyDantheman is not online. MightyDantheman
Joined: 06 May 2011
Total Posts: 5108
11 Jun 2016 02:23 PM
I'd prefer to use the original chat bar if possible. It's easier for players to type '/' and be instantly typing a message. Otherwise, I can remove chat all together and just had a textbox and do everything that way.


~MightyDantheman
Report Abuse
Soybeen is not online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
11 Jun 2016 02:25 PM
To remove anything you need to remove EVERYthing. Use this line I gave you:
game:GetService('StarterGui'):SetCoreGuiEnabled(Enum.CoreGuiType.Chat, false)

You can still use / to talk if you make your own system. Just use the UserInputService to detect when they do, and rig up a textbox like you said.



Report Abuse
Pxkez is not online. Pxkez
Joined: 24 Sep 2015
Total Posts: 1066
11 Jun 2016 02:25 PM
"I'd prefer to use the original chat bar if possible. It's easier for players to type '/' and be instantly typing a message."

what?

"It's easier for players to type '/' and be instantly typing a message."


What????
Report Abuse
MightyDantheman is not online. MightyDantheman
Joined: 06 May 2011
Total Posts: 5108
11 Jun 2016 02:27 PM
But when you do that, it won't automatically put you inside of the textbox (editing it). You'd have to click on it and type. But if I have to do that, then I guess there's no other way.

Also, if I were to have the 'enter' key be used to send the message, wouldn't that also create a new line inside of the textbox? If so, what should I do about that?


~MightyDantheman
Report Abuse
MightyDantheman is not online. MightyDantheman
Joined: 06 May 2011
Total Posts: 5108
11 Jun 2016 02:28 PM
@Pxkez

I don't think I could make that any clearer.


~MightyDantheman
Report Abuse
Soybeen is not online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
11 Jun 2016 02:29 PM
Mighty, if you're doing this custom, then the sky is the limit. It IS possible to do a UIS /-to-chat thing. :)

You don't actually have to use a textbox either. You can record the player's keystrokes to any string.


Report Abuse
Pxkez is not online. Pxkez
Joined: 24 Sep 2015
Total Posts: 1066
11 Jun 2016 02:30 PM
No Mighty, it wouldnt
Report Abuse
MightyDantheman is not online. MightyDantheman
Joined: 06 May 2011
Total Posts: 5108
11 Jun 2016 02:30 PM
That is true. Wow, alright. Thanks!


~MightyDantheman
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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