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?
Remove the first line. That first connection line isn't necessary (Unless if you're calling another function by the name of "Touched").
I believe its on line 2 that you forgot the .Parent it should be ( I may be wrong, but give it a shot )
function onTouched(hit.Parent)