|
| 22 Jul 2016 01:32 PM |
Hi, im trying to work out how to make it where if one brick is already clicked, and you click the 2nd brick then something will happen, but if the first brick is not clicked or "enabled" then it wont do anything. Help?
-TrafficHazard [Infinitum Studios] Play our newest game! https://www.roblox.com/games/387308738/Primary-Beta-1k-Visits |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 22 Jul 2016 01:35 PM |
local brick1 = workspace.Brick1 local brick2 = workspace.Brick2
local b1 = false
brick1.ClickDetector.MouseClick:connect(function(player) b1 = true end)
brick2.ClickDetector.MouseClick:connect(function(player) if b1 then --do something end end)
|
|
|
| Report Abuse |
|
|
|
| 22 Jul 2016 01:51 PM |
Thanks! This worked!
-TrafficHazard [Infinitum Studios] Play our newest game! https://www.roblox.com/games/387308738/Primary-Beta-1k-Visits |
|
|
| Report Abuse |
|
|