georgeba
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1092 |
|
|
| 29 Jun 2015 01:50 PM |
Here is how everything is laid out
BRICK --CLICKDETECTOR --SCRIPT
Now, I am trying to make it change the transparency of the blocks if the person who clicked it had a role of 252. Here is my script
door = script.Parent
function clickit() if player:GetRankInGroup(1199302) == 252 then script.Parent.Transparency = 1 end end
door.ClickDetector.MouseClick:connect(clickit)
|
|
|
| Report Abuse |
|
|
georgeba
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1092 |
|
|
| 29 Jun 2015 01:51 PM |
| Sorry for all the extra spaces, when I copied and pasted it I accidentally included this space |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 29 Jun 2015 01:53 PM |
| Change "function clickit()" to "function clickit(player)" |
|
|
| Report Abuse |
|
|
georgeba
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1092 |
|
| |
|