of     1   

YTRaulByte
#183544099Sunday, February 14, 2016 12:09 AM GMT

I need my scripts to detect a mouseclick on a textbox. When it does, a certain value changes. I got the value change part covered, but not the mouseclick. It doesn't allow me to use MouseButton1Click aswell. Any solution to my problem, please reply asap. Thanks!
Aethex
#183544220Sunday, February 14, 2016 12:11 AM GMT

YTRaulByte
#183544371Sunday, February 14, 2016 12:13 AM GMT

It works now, thanks!
YTRaulByte
#183544670Sunday, February 14, 2016 12:17 AM GMT

Nevermind, when I tried it. Focusing works, but now I have a different problem. When I have nothing imputed into my textbox, I want it to change the text color to 139,139,139. and then say "Enter text". How do I do that?
Aethex
#183545373Sunday, February 14, 2016 12:26 AM GMT

You could using the Changed event to check if the text is equal to nothing when someone erases it all: http://wiki.roblox.com/index.php?title=API:Class/Instance/Changed But I'm assuming that you don't want it to just appear when they're still actually typing in it. You could use the FocusLost event for it instead and check if it's empty once the player is no longer focused on it: http://wiki.roblox.com/index.php?title=API:Class/TextBox/FocusLost

    of     1