I'm trying to make it so when I click a part, all of the parts inside a model change Transparency from 1 to 0, and also change CanCollide from false to true. Please help.
I tried this, but it didn't work:
local children = game.Workspace.island1:GetChildren()
local button = script.Parent
function solid()
children.Transparency = 0
children.CanCollide = true
end
button.ClickDetector.MouseClick:connect(solid)

4 comments
Thank you so much, my script is finally working. I would upvote your answer if I could, but I don't have 5 reputation points. Also, how do I mark your answer as accepted? I'm very sorry for my inexperience, this is my first time using this website.
Click the checkmark button
There is no checkmark button. Here, look at this screenshot: https://s22.postimg.io/dkrd5jae9/snap.png
I have never asked a question, so I don't know.