I created a script that when someone types /spawn it teleports the player after 5 seconds, but during the time, the player has a blindness effect.
Everything is working fine, but what I need is help with making it detect the player's movement, and when he moves during the 5 seconds, the event of teleporting him to spawn gets cancelled and the blindness effect is removed. I know there are several other posts about it, but no solutions helped me exactly.
Could anyone re-code the script with the move detection thing?
Here is my script ( the lines with the send command is Polish)
https://pastebin.com/xAvdUsNP\
Everything is working fine, but what I need is help with making it detect the player's movement, and when he moves during the 5 seconds, the event of teleporting him to spawn gets cancelled and the blindness effect is removed. I know there are several other posts about it, but no solutions helped me exactly.
Could anyone re-code the script with the move detection thing?
Here is my script ( the lines with the send command is Polish)
https://pastebin.com/xAvdUsNP\