Click a model, and its childrens' transparency will become 1?
I was trying to make a script that when you click the model that the script is placed in, the childrens' (parts') transparency will change to 1.
Unfortunately, I didn't know what to put after I said "script.Parent:GetChildren()". Am I supposed to put a code line that changes the transparency of the children next to the code, or inside the parenthesis? Here's what I did:
2 | script.Parent:GetChildren() |
7 | script.Parent.ClickDetector.MouseClick:connect(onClicked) |
I'm not sure what I did wrong, and some help would be very appreciated.