In a play, dialogue is typically formatted with the character's name centered above their lines. Here’s an example based on your provided line:
CHARACTER NAME
Like under your bed. Or in a closet.
If you need further formatting, such as stage directions or additional context, please let me know!