So I am doing a simple door. The idea is having two types of doors placed. Open version and closed one. the open version of the door is transparent and have turned off collisions, closed doors have it the other way. What I am doing is having click detector in the door part, and a script which checks if the click decetor has been clicked. If yes it will make collisions false and transaprency 1 for the closed doors, and turn on collisions and transparency to 0 for the opened door. The problem is that when i click the doors, it makes the closed doors transparent and collisons turned off which is what i want BUT the opened doors version doesnt get visible nor collisons turned on, here is script I use for both of the door.:
function onClicked()
script.Parent.Parent.door1.Transparency = 1
script.Parent.Parent.door1.CanCollide = false
script.Parent.Parent.door2.Transparency =0
script.Parent.Parent.door2.CanCollide = true
end
script.Parent.ClickDetector.MouseClick:connect (onClicked)

6 comments
nah still dont work
also I tried to dm you but it tells me that noone with this name and tag exists
try Blue Duck#8902
do you see any errors on the output have you tried debugging?
That works, I sent you friend request bcs I cant msg you till you accept it
I didnt see any errors and I dont know how to debugg