#Can someone help me fix this code
5 messages · Page 1 of 1 (latest)
you're comparing a vector3 with a number
try distance.magnitude which is the distance between the positions you've subtracted
then it could be comparing number and number rather than vector3 and number (which i assumed that type of comparison throws an error)
back to this, i dont think you could do comparisons with vector3 datatypes because of their meta methods