Solved I try to make a random teleport system. But it doesn't work:

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

Mani

Member
Mar 21, 2019
17
0
0
33
Code:
command /set <text> <number>:
    permission: lb.owner
    trigger:
        if arg 1 is "spawn":
            if arg 2 is set:
                set {spawn.%arg 2%} to location of player
                add {spawn.%arg 2%} to {_spawns::*}
                send "{@logo} &aDu hast einen Spawn hinzugefügt!"
               
on join:
    set {_spawn} to random element out of {_spawns::*}
    teleport player to random element out of {_spawn}

There's no error, but it don't teleporting!
 
Last edited:
Try:
Code:
on join:
    set {_spawn} to random element out of {spawns::*}
    teleport player to {_spawn}
Remove the "_" in variable {_spawns::*} if you want
 
  • Like
Reactions: Mani
Status
Not open for further replies.