AppearPart with ClickDetector

Hello.

I make a game in which a player has to click on a specific part and then he can go through it. I also have a script, but if I use it on one part, it no longer works on the other. So I would like someone to help me with that and possibly you can write me the script.

Here is the script:
> script.Parent.ClickDetector.MouseClick:Connect(function()

game.Workspace.AppearPart.Transparency = 0 
game.Workspace.AppearPart.CanCollide = true
end)

Thank you and have a nice day!

You’re setting the “CanCollide” property to true instead of false, that’s why you can’t go through it.
Also, if you want to make the part transparent, set the transparency to 1, not 0, If that’s what you’re trying to do here.

2 Likes