Dodeca
|
  |
| Joined: 11 Sep 2011 |
| Total Posts: 13649 |
|
|
| 18 Jun 2014 08:10 PM |
| Where someone can type into? |
|
|
| Report Abuse |
|
|
Dodeca
|
  |
| Joined: 11 Sep 2011 |
| Total Posts: 13649 |
|
|
| 18 Jun 2014 08:18 PM |
Ok I put in a textbox.. But how can I make a script that checks what they typed into it? |
|
|
| Report Abuse |
|
|
|
| 18 Jun 2014 08:25 PM |
Put a script into the textbox, and then put this as your first few lines:
if script.Parent.Text = "Put Text Here" then
Where I said "Put Text Here", write what you want to know what they typed. After that, put the rest of your script after "then". For example:
if script.Parent.Text = "Hide" then script.Parent.Visible = false
That would figure out if the Textbox has the word "Hide" in it, and if it does, then the Textbox would turn invisible. Remember, the words you want to check for MUST be in quotation marks in the script. However, they won't need to be in quotation marks when the player types it. |
|
|
| Report Abuse |
|
|
|
| 18 Jun 2014 08:26 PM |
Oh, and I almost forgot; you will need some ends after the script. Don't forget those.
Be sure to tell me if this works or not. |
|
|
| Report Abuse |
|
|