Before I identify the problem, I do want to point out what I am trying to achieve- A hidden button that on touch makes a model (platform, in my case) appear and be able to be walked on, kind of like how the Roblox game-myth "Memories" works. I want this button to simply make it appear and to become unusable once the button has been activated, if that makes any sense. If I need to clarify anything, please let me know.
My current script:
bob = script.Parent.Parent.Part
function onTouch(part)
bob.Transparency = 0
bob.CanCollide = true
end
script.Parent.Touched:connect(onTouch)
The problem with it is that the script only allows me to spawn in individual parts and when I try to tell it to spawn in a model, it simply doesn't work.
Anyone know how to help?

2 comments
model dont have transparent property so u have to iterate through all parts in model and change cancollide and transparecy property individually
What Im trying to do is have a model either already in workspace be set to transparency 0 and cancollide or something that does a similar job, if possible.