script.Parent.Touched:connect(Touched)
function onTouched(hit)
script.Parent.Parent.Door.Transparency= 1 -- an invisible door
script.Parent.Parent.Door.CanCollide= false -- a walkthroughable door
wait(3)
script.Parent.Parent.Door.Transparency= 0.3 -- a partially visible door
script.Parent.Parent.Door.CanCollide= true -- a door you can't walk through anymore
end
script.Parent.Touched:connect(onTouched)
I have roblox 2014, but the tutorial I watched was 2013, can you please tell me why It won't work?

2 comments
Oh/
Plus, that argument "hit" isn't necessary also, since you're not using the argument at all (but you can leave it there if you want to).