DRMOTT
|
  |
| Joined: 20 Oct 2008 |
| Total Posts: 515 |
|
|
| 16 Feb 2013 09:26 PM |
Ok so i made a door that opens up when click a button in game. I had also made another brick that has Text above it Saying "Door: open" using the humanoid method thing. now what i want is when I click the button i want the brick with the text above it to change to "Door: Closed" and then back to "Door: Open" when clicked again. I am really confused on this.
Thanks |
|
|
| Report Abuse |
|
Joalmo
|
  |
| Joined: 28 Jun 2009 |
| Total Posts: 1160 |
|
|
| 16 Feb 2013 10:58 PM |
Simply add a snippet of code that changes the text inside the code that opens and closes the door.
--door open code Door.Humanoid.Name = "Door : Open";
-close door code Door.Humanoid.Name = "Door: Closed";
This is assuming you're using a humanoid to show the text. If not, the principle is still the same. |
|
|
| Report Abuse |
|