|
| 02 Dec 2017 07:44 PM |
| So, I want to make it so that when a button is pressed, a union part will be changed to change the transparency to 1 and cancollide to ## ### ##### and button are inside the same model. Does anyone have any idea of what i should script? |
|
|
| Report Abuse |
|
|
|
| 02 Dec 2017 07:49 PM |
| So, I want to make it so that when a button is pressed, a union part will change the transparency to 1 and cancollide to O . the union and button are inside the same model. Does anyone have any idea of what i should script? |
|
|
| Report Abuse |
|
|
retracee
|
  |
| Joined: 27 Apr 2013 |
| Total Posts: 854 |
|
|
| 02 Dec 2017 07:52 PM |
add a click detector in the object
and a script:
function onClicked() script.parent.Transparency=1 script.Parent.CanCollide=false end
script.Parent.ClickDetector.MouseClick:connect(onClicked) |
|
|
| Report Abuse |
|
|
decla123
|
  |
| Joined: 08 Jun 2011 |
| Total Posts: 112 |
|
|
| 02 Dec 2017 09:07 PM |
| don't forget to anchor it :P |
|
|
| Report Abuse |
|
|