I am trying to find the distance between points and compare it with an integer which is the amount of studs.
magnitude = (part1.Vector3 - part2.Vector3).magnitude
if magnitude <= 3 then
-- code
end
If magnitude doesnt return the distance measured in studs the above if statement would not run even if the distance is less than 3 studs.
So, Does magnitude return the amount of studs between points?

2 comments
If you dont know anything I suggest you do research before asking as this question has been answered countless times
Also magnitude returns the distances if something e.g. Part.