Skip to content

Instantly share code, notes, and snippets.

@Argentinier

Argentinier/.lua Secret

Created May 26, 2021 23:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Argentinier/4d87df6210466de628989b7040a3774c to your computer and use it in GitHub Desktop.
Save Argentinier/4d87df6210466de628989b7040a3774c to your computer and use it in GitHub Desktop.
Distance between two points
local lastGroundedPosition = (here a Vector3)
local currentPosition = (here a Vector3)
local diference = currentPosition - lastGroundedLocation
local distance = diference.size
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment