i've been trying to make a click button door but every time I do it, it wont work but it shows no errors. what I want it to do is when you click the door the door cancollie = true and the image transparency = 1. and when you click it again the door cancollide = false and the image transparency = 0. this is te script:
function OnClicked (mousebutton1) script.parent.image.transparency = 1 script.parent.CanCollide = true
if
script.parent.ClickDetector == true then
script.parent.image.transpatency = 0
script.parent.CanCollide = false
end
end

3 comments
it got messed up here is the script:
function OnClicked (mousebutton1) script.parent.image.transparency = 1 script.parent.CanCollide = true if script.parent.ClickDetector == true then script.parent.image.transpatency = 0 script.parent.CanCollide = false end end
You're not calling the function