creating a lua script for player teleportation and chest collection