If the court granted your order, you will usually need to wait outside the courtroom until a bailiff/deputy comes out with the signed order. You will need to go to the clerk's office to get your copy. Keep a copy of this order with you at all times and provide a copy to those who should have one (e.g., employer, neighbors, child's school/daycare provider, etc.). You should keep a copy of this order in your vehicle, on your person (e.g. in your purse), and at home at all times.
If the court denied your order, and there is no other order in place, such as a "no contact" order in the criminal case, there will be no restraint in place to prevent the abuser from contacting you. You may need to seek help from a friend, family member or shelter to make sure you are safe. If the abuser continues to threaten you, harass you, or otherwise make you scared, you should call the police.
If you believe the court was legally wrong in denying your order, you can file a "Motion for Reconsideration". This has to be filed within ten (10) days of the date of your Order. You have to file it with the court and serve a copy on the Respondent. There are no forms for this, so in most cases, you will need to seek legal counsel for this. You can also file a new Petition for Order of Protection. If something was wrong about how you filled out the paperwork or you didn't have your evidence or witnesses, you may want to file again and have a new court hearing.