How do I determine the amount of studs?

Hey, I wanted to ask how do I determine the amount of studs between two points (two players).

By the way, this is to make a range for teleport.

I think you can use Vector3 | Roblox Creator Documentation for this

1 Like

You can do this with the magnitude function.
Example:
local Magnitude = (Player1.Head.Position - Player2.Head.Position).Magnitude

1 Like