|
| 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
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 11 Jun 2016 02:12 PM |
game:GetService('StarterGui'):SetCoreGuiEnabled(Enum.CoreGuiType.Chat, false)
|
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 11 Jun 2016 02:15 PM |
to hide chat bubble its not ingame but rather in the games settings
|
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 11 Jun 2016 02:28 PM |
@Pxkez
I don't think I could make that any clearer.
~MightyDantheman |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 24 Sep 2015 |
| Total Posts: 1066 |
|
| |
|
|
| 11 Jun 2016 02:30 PM |
That is true. Wow, alright. Thanks!
~MightyDantheman |
|
|
| Report Abuse |
|
|