try this, it should be able to avoid your player from exploiting it. https://pastebin.com/jek6CMUk just add an extra variable to save the state to enable/disable warping into the map.