It works when I go to Play Solo mode, but when I press Play, the script won't work. I know that it has no mistakes but why won't it work?
H = game.Workspace.Door
function onTouch(Door)
H.Transparency = 0.5
H.CanCollide = false
wait(5)
H.Transparency = 0
H.CanCollide = true
end
script.Parent.Touched:connect(onTouch)

1 comment
Question is Line 11. What is the door touching or vise versa? Because by pressing "play" in studio it runs scripts but wont load the character. Therefore having no object to touch the door.