As @Scottifly already said, using ProximityPrompt Service will be the best solution.
However, it looks like you are using a ClickDetector and you can’t use a hold mouse button for it. Just. (At least I think so.)
So well, ProximityPrompt is the only way as of now.
how do i edit the properties to make it holding for an infinite amount of time since i want the door to be closed while there holding it and to lift up when they let go