I'm making a simple door. When you touch a part in front of the door, it opens. I have two "different" doors. When you touch the part, the first position disappears and the seconds appears instead får two seconds. Allowing you enough time to walk through. Something is bothering me though, the invisible part you have to touch has to have "CanCollide" on for it to be working. This makes the player bump a tiny bit when walking through the door, I wish the door would be much cleaner. Is there any way you can detect a "CanCollide false" part with a Touched event, or can you use another way to make this possible? Thank you very much.
game.Workspace.TouchPart.Touched:Connect(function()
game.Workspace.TouchPart.CanCollide = false
game.Workspace.FirstDoor.DoorPos1.Transparency = 1
game.Workspace.FirstDoor.DoorPos1.CanCollide = false
game.Workspace.FirstDoor.DoorPos2.Transparency = 0
game.Workspace.FirstDoor.DoorPos2.CanCollide = true
wait(3)
game.Workspace.TouchPart.CanCollide = true
game.Workspace.FirstDoor.DoorPos1.Transparency = 0
game.Workspace.FirstDoor.DoorPos1.CanCollide = true
game.Workspace.FirstDoor.DoorPos2.Transparency = 1
game.Workspace.FirstDoor.DoorPos2.CanCollide = false
end)
Edit:
Nevermind, seems like something went wrong earlier when I tested the script. It works perfectly fine even when the part has CanCollide set at false. My bad!

5 comments
Yeah, Touched still fires even if the part has collisions disabled.
Yes
Yes, you could even try region3.
Better solution ^
no