create a lua script for workspace management and player interaction