|
| 21 Oct 2017 02:17 PM |
| So let's say I wanted to manipulate certain objects in different groups which are named the same, how would I go about doing this? So let's say there is a part called "Lightpart" in one group, and all the groups are nammed the same, and have the same part, how would I do this? Thanks |
|
|
| Report Abuse |
|
|
|
| 21 Oct 2017 02:18 PM |
local group = whateverthegroupis:GetChildren()
for i, v in pairs(group) do if v.Name == "ObjectName" then v.Transparency = 0.5 end end
|
|
|
| Report Abuse |
|
|
|
| 21 Oct 2017 02:18 PM |
| Can you detail it for me more? |
|
|
| Report Abuse |
|
|
|
| 21 Oct 2017 02:22 PM |
| So let's say there is a part called "Lightpart", and this same part is in three different groups called "Stop Light". I want to manipulate all of those parts all at the same time, in one script. |
|
|
| Report Abuse |
|
|
|
| 21 Oct 2017 02:25 PM |
| @Brandon Would that script allow me to put multiple groups in it? even if they have a different name? Thanks. |
|
|
| Report Abuse |
|
|
|
| 21 Oct 2017 02:41 PM |
u cant do that
u gotta specify which group, and if they're all the same then the script will choose a random one
#code error("you're*") |
|
|
| Report Abuse |
|
|
|
| 21 Oct 2017 02:43 PM |
| But if I specify the groups, can I specify multiple groups in generic for? |
|
|
| Report Abuse |
|
|