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 » Scripting Helpers
Home Search
 

Re: Allow non-alphanumeric characters in GUI textbox

Previous Thread :: Next Thread 
CRITICVIP2 is not online. CRITICVIP2
Joined: 12 Feb 2011
Total Posts: 609
12 Aug 2013 10:27 AM
Hello. I'm creating a script builder for another language similar to lua called python.
Anywho, I need to allow special characters such as (), '', "", %, +, and so on.
How would I do this?
Report Abuse
CRITICVIP2 is not online. CRITICVIP2
Joined: 12 Feb 2011
Total Posts: 609
12 Aug 2013 10:27 AM
*Im trying to allow it in a GUI textbox
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
12 Aug 2013 10:29 AM
You don't.
Report Abuse
robomax11 is not online. robomax11
Joined: 07 Jul 2011
Total Posts: 6828
12 Aug 2013 10:30 AM
^ true
Report Abuse
mylifeis2cooldlol is not online. mylifeis2cooldlol
Joined: 08 Mar 2011
Total Posts: 874
12 Aug 2013 10:31 AM
^^ FALSE

^ False

Use the magical escape character "%"

so to print %, do print("%%")

http://www.lua.org/pil/20.2.html
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
12 Aug 2013 10:33 AM
^ TextBox object.

Lrn2reed.
Report Abuse
mylifeis2cooldlol is not online. mylifeis2cooldlol
Joined: 08 Mar 2011
Total Posts: 874
12 Aug 2013 10:34 AM
:3 What? I thought it would also allow for that.
Report Abuse
mylifeis2cooldlol is not online. mylifeis2cooldlol
Joined: 08 Mar 2011
Total Posts: 874
12 Aug 2013 10:35 AM
Ok >.< Your best hope is to use the keyboard and manually pick up when the player types that character ;P
Report Abuse
CRITICVIP2 is not online. CRITICVIP2
Joined: 12 Feb 2011
Total Posts: 609
12 Aug 2013 10:44 AM
Any ideas on how to go about that?
Report Abuse
luke111000 is not online. luke111000
Joined: 26 Apr 2009
Total Posts: 1853
12 Aug 2013 10:48 AM
Mouse = game.Players.LocalPlayer:GetMouse()

Mouse.KeyDown:connect(function(Key)
Textbox.Text = Textbox.Text .. Key
end)

Possibru.
Report Abuse
CRITICVIP2 is not online. CRITICVIP2
Joined: 12 Feb 2011
Total Posts: 609
12 Aug 2013 02:58 PM
Luke, That didn't work.
No errors, though :c
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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