I am testing how to make a object be invisible and visible when clicked. Example , I click it once it will be invisible then I click it again it would be visible.
Door = script.Parent.Parent
function pie()
if Door.p1.Transparency == 1 then
Door.p1.Transparency = 0
else
Door.p1.Transparency = 1
end
end
script.Parent.MouseButton1Click:connect(function(pie)
The door is called "p1" This is inside a script not a local one.

1 comment
Did it work :D? If so can you accept my answer it would be appreciated uwu