You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? Being able to change all of the children in a model.
What is the issue? Here, the image shows the error in console. I tried to change the transparency of the ambience lighting, however it does not allow me to cast the value to the object.
What solutions have you tried so far? I can’t really phrase it properly for searches. I have tried GetChildren and GetDescendants.
If you would like me to send you the model to test it, you can reply for a download.
Please tell me if I made a dumb mistake again. I really want this fixed ASAP. Help is much appreciated.
What if I have multiple models? I need to do this 18 times: 8 times for the lasers, 8 more times for the startup lasers, 1 time for the startup ambient lighting, and 1 last time for the normal ambient lighting.
I’d suggest using if V:IsA(“InstanceName”) instead since that’s more practical and efficient than using if v.Name you’ll have to change the name of each child if you were to use if v.Name, However if you only want to edit specific parts then you can use the GetChildren() function for the specific models or if v.Name as @Mishaho mentioned!