bigkopa
|
  |
| Joined: 05 Mar 2015 |
| Total Posts: 448 |
|
|
| 18 Jul 2015 11:44 AM |
| I tried just putting the "/" plainly but it didn't work. I know it does work with games like Tradelands, but I'm not sure how to do it. |
|
|
| Report Abuse |
|
|
|
| 18 Jul 2015 11:48 AM |
local starterGui = game:GetService("StarterGui") local contextActionService = game:GetService("ContextActionService")
local chatBar = script.Parent -- your chat bar
function focusChatBar(name, state, object) if state == Enum.UserInputState.Begin then chatBar:CaptureFocus() end end
contextActionService:BindAction("FocusChatBar", focusChatBar, false, Enum.KeyCode.Slash) starterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, false) |
|
|
| Report Abuse |
|
|
bigkopa
|
  |
| Joined: 05 Mar 2015 |
| Total Posts: 448 |
|
| |
|
bigkopa
|
  |
| Joined: 05 Mar 2015 |
| Total Posts: 448 |
|
|
| 18 Jul 2015 11:56 AM |
| Does that work with the coregui though? I know that I could disable the chat and make a new one, but I wanted to keep the coregui. |
|
|
| Report Abuse |
|
|
|
| 18 Jul 2015 11:57 AM |
| I thought you wanted to disable it. |
|
|
| Report Abuse |
|
|
bigkopa
|
  |
| Joined: 05 Mar 2015 |
| Total Posts: 448 |
|
|
| 18 Jul 2015 11:59 AM |
| No, I wanted to keep it. I forgot to state that in the thread sorry |
|
|
| Report Abuse |
|
|
|
| 18 Jul 2015 12:01 PM |
| What? Well you can't just disable the chatbar, you have to disable the entire chat gui. |
|
|
| Report Abuse |
|
|
bigkopa
|
  |
| Joined: 05 Mar 2015 |
| Total Posts: 448 |
|
|
| 18 Jul 2015 12:03 PM |
I meant to say the chat. I don't want to disable anything.
I just want to use the "/" key for a speak script |
|
|
| Report Abuse |
|
|
| |
|
bigkopa
|
  |
| Joined: 05 Mar 2015 |
| Total Posts: 448 |
|
|
| 18 Jul 2015 12:07 PM |
| Nevermind, I'll just use another key |
|
|
| Report Abuse |
|
|