How to make people stay in a specific set of coordinates

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Zales

Member
Jul 4, 2020
1
0
0
20
Hello I am currently trying to make a skript where a specifc team color can only stay in a specific set of coordinates. I have been trying to search for skripts for 2 days now and could not find any that's why I am making my own skript.

Example:
Red team can only stay at coordinates x:-750 z:-750 to x:0 z:0


I hope someone could help me and Thank you in advance.
 
You can try using on any movement event, I don't really suggest it though if you don't have a good performed server. Anyways, so you can use on any movement event, you can set a variable to the location, then check the distance between the location and the red team players, if it's greater than the distance, then you can cancel event.
 
Status
Not open for further replies.