I tried wiki and it didn't help nothing. I just need like a variable saying like:
distance = [Disance Here]
Does anyone know how to do that?
I tried wiki and it didn't help nothing. I just need like a variable saying like:
distance = [Disance Here]
Does anyone know how to do that?
It says it quite clearly on the wiki here: http://wiki.roblox.com/index.php?title=Magnitude
local magnitude = (part1.Position - part2.Position).magnitude
print(magnitude)
Ty. Didn't see that one.
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
http://wiki.roblox.com/index.php?title=Magnitude