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: UIS activating even when chatting

Previous Thread :: Next Thread 
EndTheKinen is not online. EndTheKinen
Joined: 10 Jan 2011
Total Posts: 648
02 Nov 2015 01:36 PM
Yo guys, i'm currently working with gamepad compatibility, so i started to use UIS (UserInputService), it's works correctly, the only problem is that it activates even when chatting, which i don't want.

I use a keep key pressed to do it system, so i use InputBegan and InputEnded.
Report Abuse
instawin is not online. instawin
Joined: 04 Jun 2013
Total Posts: 8777
02 Nov 2015 01:37 PM
UIS.InputBegan:connect(function(input, gpe)
if not gpe and input.KeyCode == Enum.KeyCode.Blah then
print'blah'
end
end)
Report Abuse
Locard is not online. Locard
Joined: 13 Apr 2014
Total Posts: 3516
02 Nov 2015 01:38 PM
The second argument that UIS gives is called GameProcessEvent, meaning it's an input generated from ROBLOX's core interface (accessing the menu for instance). You can check if this is false and it'll make sure that the rest of your code works only when not using a ROBLOX core gui.
Report Abuse
EndTheKinen is not online. EndTheKinen
Joined: 10 Jan 2011
Total Posts: 648
02 Nov 2015 01:39 PM
Oh nice.
Thanks alot.
Report Abuse
LongKillKreations is not online. LongKillKreations
Joined: 14 Feb 2014
Total Posts: 4502
02 Nov 2015 01:40 PM
InputBegan returns a second argument, GameProccessedEvent. GPE will be true if the key input is being handled externally (by something like a TextBox for the chat), or false if it is not being handled externally.
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