Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function distance(from, to)
- x = from[1] - to[1]
- y = from[2] - to[2]
- z = from[3] - to[3]
- return math.floor(math.sqrt(x^2 + y^2 + z^2))
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement