Detect when a player is in or not in a part

I recommend using this module, it’s great for what you need.