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: How to do detect when player clicks outside of a TextBox?

Previous Thread :: Next Thread 
EatCheetos is not online. EatCheetos
Joined: 05 May 2015
Total Posts: 127
17 Jul 2017 03:55 PM
I have a simple question. I'm currently creating custom chat box for the game, and I'd like to know if there is a method or function that can detect a player clicking outside/away from the TextBox where the player types in a message. The only function that I know of that may solve the issue is the ########### function, but I'd have to loop a function checking every second or so, and I believe there a more efficient way to deal with the problem. Any help is appreciated.
Report Abuse
Casualist is not online. Casualist
Joined: 26 Jun 2014
Total Posts: 4443
17 Jul 2017 04:16 PM
The wiki is a magical place. It has answers to your questions and those you haven't thought to ask yet.
wiki.roblox.com/index.php?title=API:Class/TextBox/FocusLost
Report Abuse
EatCheetos is not online. EatCheetos
Joined: 05 May 2015
Total Posts: 127
17 Jul 2017 06:12 PM
Sorry, I got confused with that function.

I originally thought that it only fired when you pressed the "Enter" button xD

Thanks anyways.
Report Abuse
mopy16 is not online. mopy16
Joined: 05 Jun 2013
Total Posts: 83
18 Jul 2017 12:34 AM
You can do a mouseleave function that activates another function that does what you want when MouseButton1:connect
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