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
 

How do I use "/" if I wanted to get a player's chat?

Previous Thread :: Next Thread 
bigkopa is not online. 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
nQqzRYVpIKA5jLP is not online. nQqzRYVpIKA5jLP
Joined: 05 Mar 2015
Total Posts: 4135
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 is not online. bigkopa
Joined: 05 Mar 2015
Total Posts: 448
18 Jul 2015 11:50 AM
Thanks
Report Abuse
bigkopa is not online. 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
nQqzRYVpIKA5jLP is not online. nQqzRYVpIKA5jLP
Joined: 05 Mar 2015
Total Posts: 4135
18 Jul 2015 11:57 AM
I thought you wanted to disable it.
Report Abuse
bigkopa is not online. 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
nQqzRYVpIKA5jLP is not online. nQqzRYVpIKA5jLP
Joined: 05 Mar 2015
Total Posts: 4135
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 is not online. 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
nQqzRYVpIKA5jLP is not online. nQqzRYVpIKA5jLP
Joined: 05 Mar 2015
Total Posts: 4135
18 Jul 2015 12:04 PM
?
Report Abuse
bigkopa is not online. bigkopa
Joined: 05 Mar 2015
Total Posts: 448
18 Jul 2015 12:07 PM
Nevermind, I'll just use another key
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