skript for teleport

  • 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!

Gone2Hell

Member
Jun 9, 2023
3
0
1
29
Can someone make a script that would teleport the players to 5 coordinates that are entered in the script when they type the /rtp command, like for example:
3393 79 -5702
6620 68 -8957
6611 70 -7618
4101 118 -2005
4951 71 3051
 
ive tested in-game and it works
Code:
command rtp:
    trigger:
        set {_cord} to a random number between 1 and 6
        set {_cord} to the first character of "%{_cord}%"
        if {_cord} is "1":
            teleport player to location(3393, 79, -5702)
        if {_cord} is "2":
            teleport player to location(6620, 68, -8957)
        if {_cord} is "3":
            teleport player to location(6611, 70, -7618)
        if {_cord} is "4":
            teleport player to location(4101, 118, -2005)
        if {_cord} is "5":
            teleport player to location(4951, 71, 3051)
 
  • Like
Reactions: Gone2Hell
Can someone make a script that would teleport the players to 5 coordinates that are entered in the script when they type the /rtp command, like for example:
3393 79 -5702
6620 68 -8957
6611 70 -7618
4101 118 -2005
4951 71 3051

Keep in mind that if no world is specified it will use the default world
Code:
on load:
  set {RTP::*} to location(3393, 79, -5702), location(6620, 68, -8957), location(6611, 70, -7618), location(4101, 118, -2005) and location(4951, 71, 3051)

command /rtp:
  trigger:
    teleport player to random element of {RTP::*}