Supah
|
  |
| Joined: 16 Aug 2008 |
| Total Posts: 921 |
|
|
| 29 Jun 2012 07:28 PM |
its part of a script... i need this to work with an if key = system.
if (key == "B") then modelname = "model's name here" for i,v in pairs (game.Workspace:findFirstChild(modelname):GetChildren()) if v:IsA("Part") then v.Transparency = 1 end end
|
|
|
| Report Abuse |
|
|
MyLyrics
|
  |
| Joined: 28 Jun 2012 |
| Total Posts: 36 |
|
|
| 29 Jun 2012 07:33 PM |
if key == "b" then modelname = "Name" for i,v in pairs(game.Workspace:FindFirstChild(modelname):GetChildren()) do if v:IsA("Part") then v.Transparency = 1 end end |
|
|
| Report Abuse |
|
|
Supah
|
  |
| Joined: 16 Aug 2008 |
| Total Posts: 921 |
|
|
| 29 Jun 2012 07:38 PM |
doesn't work it doesn't turn anything invisible, and it's missing an end. |
|
|
| Report Abuse |
|
|
WhiteRain
|
  |
| Joined: 24 Apr 2010 |
| Total Posts: 2723 |
|
|
| 29 Jun 2012 07:40 PM |
| This won't work as it needs to be in either a tool or hoppebin. If you want to use this you will have to make it create multiple instances for the tool/hopperbin and the handle. |
|
|
| Report Abuse |
|
|
MyLyrics
|
  |
| Joined: 28 Jun 2012 |
| Total Posts: 36 |
|
|
| 29 Jun 2012 07:42 PM |
| Supah, who are you to judge? You're stupid enough to forget the do after the for! XD! |
|
|
| Report Abuse |
|
|
Supah
|
  |
| Joined: 16 Aug 2008 |
| Total Posts: 921 |
|
|
| 03 Jul 2012 03:45 PM |
| Well, obviously, I cannot be that stupid, because I have created a script with over 200,000 lines, I'm kinda tired, so, give me a break. I don't just code RBXLua, because you can't make a living off of it. You can make a living off of C++, C#, Lua, and HTML. I code those languages. I don't see you being much better, if at all better, than me. |
|
|
| Report Abuse |
|
|