Hello all, I have this problem where I can’t get the distance between a turret and the target.
This is the function
the target is the player and the body is the turret
return(body.Position - target.Position).Magnitude
Is there something wrong with it? How do I fix it? Is there maybe another way to do it?