script for getting entity of server