|
| 16 Jun 2014 11:47 PM |
brick = script.Parent
function click() if game.StarterGui.ScreenGui.TextLabel.Text = "you got 1 wood" then script.Parent.Transparency = 0 end end
brick.ClickDetector.MouseClick:connect(click) |
|
|
| Report Abuse |
|
|
wetrel
|
  |
| Joined: 19 Jun 2009 |
| Total Posts: 919 |
|
|
| 16 Jun 2014 11:50 PM |
1) Putting that "then" on the next line makes me cringe, but its your choice. 2) Is the text perfectly "you got 1 wood"? |
|
|
| Report Abuse |
|
|
Plokster
|
  |
| Joined: 21 May 2008 |
| Total Posts: 23628 |
|
|
| 16 Jun 2014 11:50 PM |
er, pretty confusing to follow what youre trying to do
could you further explain what youre trying to accomplish? |
|
|
| Report Abuse |
|
|
|
| 16 Jun 2014 11:51 PM |
yeah.
What would I put instead of then? |
|
|
| Report Abuse |
|
|
|
| 16 Jun 2014 11:52 PM |
Im trying to make it so if the text equals "you got 1 wood" then the brick the script is in's transparency = 0. |
|
|
| Report Abuse |
|
|
robomax11
|
  |
| Joined: 07 Jul 2011 |
| Total Posts: 6828 |
|
|
| 16 Jun 2014 11:53 PM |
.StarterGui
-_- he is beyond help
siggys r stupid |
|
|
| Report Abuse |
|
|
wetrel
|
  |
| Joined: 19 Jun 2009 |
| Total Posts: 919 |
|
|
| 16 Jun 2014 11:54 PM |
brick = script.Parent function click() if game.StarterGui.ScreenGui.TextLabel.Text == "you got 1 wood" then script.Parent.Transparency = 0 end end brick.ClickDetector.MouseClick:connect(click) |
|
|
| Report Abuse |
|
|
wetrel
|
  |
| Joined: 19 Jun 2009 |
| Total Posts: 919 |
|
|
| 16 Jun 2014 11:55 PM |
Use tools>test>play solo and see where the players gui is when they place. game.Players.PLAYER.PlayerGui.GUI |
|
|
| Report Abuse |
|
|
| |
|
wetrel
|
  |
| Joined: 19 Jun 2009 |
| Total Posts: 919 |
|
|
| 17 Jun 2014 12:01 AM |
| Np, and also, when you compare use ==, = is for setting valuse. |
|
|
| Report Abuse |
|
|
| |
|