pitaden
|
  |
| Joined: 21 Aug 2011 |
| Total Posts: 2492 |
|
|
| 02 May 2015 10:27 PM |
I want to create a script that makes it so that when I press E on a group of objects, that group gets a transparency of 0 and after a minute or two it reappears. The problem is that I have no idea how to make a script like that.
I was thinking that the script would go along the lines of this, but I don't know how to make one that would actually work.. while wait(0.1) do if keys("e") then workspace.object.objectbit1.Part.transparency = 0 workspace.object.objectbit2.Part.transparency = 0 end end
In the actual model, there are multiple parts named Part, so I'm guessing that doing Part.transparency would affect all parts with that name in the parent of Part. |
|
|
| Report Abuse |
|
|
pitaden
|
  |
| Joined: 21 Aug 2011 |
| Total Posts: 2492 |
|
|
| 04 May 2015 08:48 PM |
| Bump, since no responses so far. |
|
|
| Report Abuse |
|
|
|
| 04 May 2015 08:51 PM |
| Ermmm, your script has flaws, as well as the value you are trying to change the transparency to(0 = visible, 1 = invisible). As for your request.....idk either :/ |
|
|
| Report Abuse |
|
|
pitaden
|
  |
| Joined: 21 Aug 2011 |
| Total Posts: 2492 |
|
|
| 04 May 2015 08:57 PM |
@SolePlayer The script is just a guess of what I think it might look like, not the script I would use. |
|
|
| Report Abuse |
|
|
|
| 04 May 2015 08:59 PM |
| Like I said, don't actually know what do do here. Just thought I would give my thoughts on your script. |
|
|
| Report Abuse |
|
|
| |
|