At school pickup, a neighbor says hello while checking the time and watching the door. They might be glad to see you and still have somewhere to be. If you need more than a quick hello, give them a sense of what you want to ask and how long it might take.
Try, “I wanted to ask you about the school fundraiser. Got two minutes, or should I text you later?” If they say later, let them get on with their day. If they say yes, start with the question you came to ask.
To practice, ask a friend, “How would you let me know you were in a hurry?” Search “how to start a conversation when someone is busy” for other ways to check the timing.