my current skript is
It works, but even the slightest mouse movement causes it to cancel. Any help?
Posted by: 9936.rar from the skUnity Discord. View the thread on skUnity Discord here
code_language.skript:
command /spawn:
trigger:
set {spawnLocation::%player's uuid%} to location of player
send "&6&lSPAWN &7» &eWait 5 &6Seconds&e!" to player
wait 100 ticks
if location of player is not {spawnLocation::%player's uuid%}:
send "&6&lSPAWN &7» &cYou moved! The teleportation has been cancelled." to player
else:
teleport player to {sspawn}
send "&6&lSPAWN &7» &eWelcome to &6Spawn&e!" to player
delete {spawnLocation::%player's uuid%}
It works, but even the slightest mouse movement causes it to cancel. Any help?
Posted by: 9936.rar from the skUnity Discord. View the thread on skUnity Discord here