Did this script as a quick request, it will allow you to restrict players to only stay in specific zones. You can change the message, the location you get teleported to whenever you exit the accepted zones, as well as which zones are allowed to be in.
I think it would be better if people enter zone ids where player shouldn't be in instead of ids where players are allowed to be in.
Mostly people want to restrict single zones, with your way they have to enter every id except the forbidden zones.
I think it would be better if people enter zone ids where player shouldn't be in instead of ids where players are allowed to be in.
Mostly people want to restrict single zones, with your way they have to enter every id except the forbidden zones.