|
| 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 |
|
|
|
| 12 Aug 2013 10:27 AM |
| *Im trying to allow it in a GUI textbox |
|
|
| Report Abuse |
|
|
| |
|
robomax11
|
  |
| Joined: 07 Jul 2011 |
| Total Posts: 6828 |
|
| |
|
|
| 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 |
|
|
|
| 12 Aug 2013 10:33 AM |
^ TextBox object.
Lrn2reed. |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2013 10:34 AM |
:3 What? I thought it would also allow for that.
|
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 12 Aug 2013 10:44 AM |
| Any ideas on how to go about that? |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 12 Aug 2013 02:58 PM |
Luke, That didn't work. No errors, though :c |
|
|
| Report Abuse |
|
|