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:
function onClicked()
script.Parent:GetChildren()
-- what should go here?
-- Trying to make it so that when the model is clicked, the childrens' transparency will change to 1
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
I'm not sure what I did wrong, and some help would be very appreciated.
