Hello, so I’m currently working on a Press E to open door script to practice my scripting, and I was wondering if there was any way to get the players distance from the door without constantly using a while loop. I have tried searching it up and most topics I saw say to use Region3 but I was wondering if there’s a way to use Magnitude.
I’m trying to use the ContextActionService not UserInputService. I’m trying to make sure the character is less than 10 studs away from the door then I’m binding the E key to the Opendoor function.