need a script for random

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

Aawqq2112

Member
Apr 1, 2021
20
0
1
32
If the player is in the world "World" then every 5 seconds, the script selects a random game on the server and writes to the chat "Random: "name of the random game"
 
Code:
on load:
    add "Game1" to {random::*}
    add "Game2" to {random::*}
    add "Game 3" to {random::*}


# And so on and then:

if in world "World":
    every 5 seconds:
        set {randomgame} to random element out of {random::*}
        execute console command "/broadcast Join {randomgame}"
        delete {randomgame}

I haven't tested this so it might not work but feel free to reply with the error message if it doesn't work