RTP Skript

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

Harfull

Member
Jun 18, 2023
1
0
1
23
I am requesting an RTP script that will teleport you randomly to the world "world" even if you are in another world, (My spawn is in the world "spawn"). I would also like it to take 5 seconds before you teleport while if you move or get damaged during that time it will cancel, I would also like a 120-second cooldown for the RTP script that will not activate if the teleport gets canceled. My spawn script has an example of the delay
Code:
        if {spawn} is set:
            send "{@Prefix} Teleporting In 5 Seconds! Don't Move!" to player
            set {_x} to x-coordinate of player
            set {_z} to z-coordinate of player
        loop 5 times:
            send action bar "{@Prefix} Teleporting in %6-loop-value%" to player
            if "%x-coordinate of player% - %z-coordinate of player%" != "%{_x}% - %{_z}%":
                send "{@Prefix} You moved!"
                stop
            wait 1 second
        teleport player to {spawn}
Thank you.