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: Somebody help me with TextBoxFocus?

Previous Thread :: Next Thread 
AwesomeBrickJoe is not online. AwesomeBrickJoe
Joined: 11 Sep 2011
Total Posts: 550
14 Mar 2017 04:43 PM
Hey I'm new to scripting. I have a script for an animation but when I type to chat with my friends, it activates when I don't want it to. How do I fix that? Message me if you want to help.
Report Abuse
Soybeen is not online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
14 Mar 2017 04:45 PM
Why does it do that? #### ####
Report Abuse
AwesomeBrickJoe is not online. AwesomeBrickJoe
Joined: 11 Sep 2011
Total Posts: 550
14 Mar 2017 04:48 PM
uh thats why I'm asking.
Report Abuse
Soybeen is not online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
14 Mar 2017 05:02 PM
post ye'r code


Report Abuse
iJacobness is not online. iJacobness
Joined: 20 Jan 2014
Total Posts: 4944
14 Mar 2017 05:03 PM
This is an issue with UIS not textbox.

In UIS.Inputbegan() you have 2 main argument thingies, key, and processed.

simple change the first line of your inputbegan to

game:GetService('UserInputService').InputBegan:connect(function(key,processed)
if processed then return end -- this checks if you are say, typing in a chat bar.


Report Abuse
AwesomeBrickJoe is not online. AwesomeBrickJoe
Joined: 11 Sep 2011
Total Posts: 550
14 Mar 2017 05:50 PM
Check your messages.
Report Abuse
Soybeen is not online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
15 Mar 2017 02:22 AM
What do you mean it activates when you don't want it to?


Report Abuse
AwesomeBrickJoe is not online. AwesomeBrickJoe
Joined: 11 Sep 2011
Total Posts: 550
15 Mar 2017 10:52 AM
Like for example my key that I will be pressing for the animation to activate is Q. BUT when I am chatting with my friends like typing in the chatbox and I press Q in the sentence that i am typing to talk to my friends, the animation just activates when I didn't want it to.
Report Abuse
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
15 Mar 2017 10:53 AM
That's where the `gameProcessedEvent` parameter comes in.


Report Abuse
AwesomeBrickJoe is not online. AwesomeBrickJoe
Joined: 11 Sep 2011
Total Posts: 550
15 Mar 2017 11:08 AM
I'm so confused ;-; I was told to use TextBoxFocus and now gameProcessedEvent ;-;
Report Abuse
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
15 Mar 2017 11:14 AM
It's an argument that is passed by the InputBegan event. It passes true if a GuiObject is in focus and false otherwise.


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