Hi. I want to make rtp skript that teleports player in the world survival randomly
It shows this error
Code:
variables:
{x} = 0
{y} = 0
{z} = 0
command /rtp:
permission: skyland.rtp
aliases: /rt, /randomteleport, /rteleport, /randomtp, /randomt
trigger:
set {x} to random integer between -5000 and 2000
set {y} to random integer between 100 and 100
set {z} to random integer between -9000 and 5000
apply potion of resistance of tier 200 to player for 30 seconds #the long of the potion can be whatever you want, 1 tick, 15 days, a year
wait 1 second
teleport player to location at {x} {y} {z} in world "survival"
wait 30 seconds
Variables cannot be used here. tp.sk: teleport player to location at {x} {y} {z} in world "survival"