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: Help please

Previous Thread :: Next Thread 
cgjnm is not online. cgjnm
Joined: 22 Dec 2011
Total Posts: 2347
21 Jul 2015 06:30 PM
Using the UserInputService, I noticed that when a player presses a button while chatting, it still counts.


What I want to do is have it to where the player presses 'e' then it will open up an inventory gui.

But if the player types in (for example) 'Help' then that would count as pressing 'e'


How can I fix this?
Report Abuse
cgjnm is not online. cgjnm
Joined: 22 Dec 2011
Total Posts: 2347
21 Jul 2015 06:48 PM
bump
Report Abuse
cgjnm is not online. cgjnm
Joined: 22 Dec 2011
Total Posts: 2347
21 Jul 2015 06:51 PM
Should I instead use the deprecated function Mouse.KeyDown:connect()?
Report Abuse
GrimReaper5908 is not online. GrimReaper5908
Joined: 13 Feb 2012
Total Posts: 181
21 Jul 2015 06:53 PM
^ I still use it, and it works perfectly. I would.
Report Abuse
CrowClaws is not online. CrowClaws
Joined: 04 Jul 2010
Total Posts: 4466
21 Jul 2015 06:54 PM
userinutservice returns a bool "gameprocessedevent" check if it's true
Report Abuse
GrimReaper5908 is not online. GrimReaper5908
Joined: 13 Feb 2012
Total Posts: 181
21 Jul 2015 06:55 PM
Or you could do:

Player = game.Players.LocalPlayer
Mouse = Player:GetMouse()

Mouse.KeyDown:connect(function(Key)
if Key == "e" then
--Code
end)
Report Abuse
CrowClaws is not online. CrowClaws
Joined: 04 Jul 2010
Total Posts: 4466
21 Jul 2015 06:56 PM
NO KEY DOWN IS TRASH SHUTUP


UIS RETURNS A BOOL IF THEY ARE CHATTING OR SOMETHING. IF IT'S FALSE THEN THEY ARE CHATTING. IF IT'S TRUE THEY'RE NOT CHATTING
Report Abuse
GrimReaper5908 is not online. GrimReaper5908
Joined: 13 Feb 2012
Total Posts: 181
21 Jul 2015 06:57 PM
Calm Down.
Report Abuse
KLGA is not online. KLGA
Joined: 19 Apr 2014
Total Posts: 2571
21 Jul 2015 06:59 PM
UserInputService.InputBegan:connect(function(input,gpe)
if not gpe then
...
end
end)
Report Abuse
cgjnm is not online. cgjnm
Joined: 22 Dec 2011
Total Posts: 2347
21 Jul 2015 07:10 PM
Thanks
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