brados123
|
  |
| Joined: 24 Nov 2012 |
| Total Posts: 2143 |
|
|
| 10 Oct 2015 03:39 PM |
any help? what it is meant to do is, check that the statement i made is true (which it is) and then, it executes the code to change the color of a brick.
can someone edit this? thanks:
function onClick(hit) if game.Workspace.Check.Value == 0.5 then if game.Workspace.Blue.Transparency == 0.5 then -- this is a true statement. script.Parent.BrickColor = BrickColor.Blue() end end end
script.Parent.ClickDetector.MouseClick:connect(onClick)
thanks guys |
|
|
| Report Abuse |
|
|
gangman67
|
  |
| Joined: 04 Jun 2011 |
| Total Posts: 798 |
|
|
| 10 Oct 2015 03:41 PM |
script.Parent.BrickColor = BrickColor.new("Blue") |
|
|
| Report Abuse |
|
|
gangman67
|
  |
| Joined: 04 Jun 2011 |
| Total Posts: 798 |
|
|
| 10 Oct 2015 03:44 PM |
OH my bad I read that wrong local BLU = game.Workspace:FindFirstChild("Blue") function onClick(hit) if game.Workspace.Check.Value == 0.5 then if BLU.Transparency == 0.5 then -- this is a true statement. script.Parent.BrickColor = BrickColor.new(""..BLU.BrickColor) end end end script.Parent.ClickDetector.MouseClick:connect(onClick) try that Im not sure if it will work |
|
|
| Report Abuse |
|
|