Would it be possible to do this with a repeat loop?

	x = math.random(-5,5)
	z = math.random(-5,5)
until (x <= 3 or x >= 3 and z <= 3 or z >= 3) or not victim or not attacker

Basically the parenthesis are supposed to make it so it checks that part first, then afterwards it also checks if the victim or attacker doesn’t exist. Is this possible to do?

Yes that should work. Parentheses will determine order of operation in boolean checks as well.

1 Like

thanks for your help, appreciate it