How to execute a function by the player who created the room only?

How to execute a function by the player who created the room only? Thanks