a guest May 22nd, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- function distance(from, to)
- x = from - to
- y = from - to
- z = from - to
- return math.floor(math.sqrt(x^2 + y^2 + z^2))
RAW Paste Data