How to get character velocity?

Whats the best way to get a characters velocity?

I know two methods, what is the best way to achieve this?

  1. HumanoidRootPart.AssemblyLinearVelocity.Magnitude
  2. HumanoidRootPart:GetVelocityAtPosition(HumanoidRootPart:Position)
  3. Any better ways?

Both return Velocities, Both return the same thing except one of them returns the Velocity based on its Position, But one is basically more accurate than the other.
line 7 = AssemblyLinearVelocity.Magnitude
line 8 = :GetVelocityAtPosition.Magnitude

  21:50:51.309  16.444942474365234  -  Server - Script:7
  21:50:51.309  16.444183349609375  -  Server - Script:8
  21:50:51.410  16.041011810302734  -  Server - Script:7
  21:50:51.410  16.040695190429688  -  Server - Script:8
  21:50:51.526  15.997055053710938  -  Server - Script:7
  21:50:51.526  15.997047424316406  -  Server - Script:8
  21:50:51.626  16.0020809173584  -  Server - Script:7
  21:50:51.626  16.0020809173584  -  Server - Script:8
  21:50:51.743  16.00208282470703  -  Server - Script:7
  21:50:51.743  16.00208282470703  -  Server - Script:8
  21:50:51.859  16.00208282470703  -  Server - Script:7
  21:50:51.859  16.00208282470703  -  Server - Script:8
  21:50:51.976  16.00208282470703  -  Server - Script:7
  21:50:51.976  16.00208282470703  -  Server - Script:8
  21:50:52.092  16.00208282470703  -  Server - Script:7
  21:50:52.092  16.00208282470703  -  Server - Script:8
  21:50:52.192  16.00208282470703  -  Server - Script:7
  21:50:52.192  16.00208282470703  -  Server - Script:8
  21:50:52.293  16.00208282470703  -  Server - Script:7
  21:50:52.293  16.00208282470703  -  Server - Script:8
  21:50:52.393  16.00208282470703  -  Server - Script:7
  21:50:52.393  16.00208282470703  -  Server - Script:8
  21:50:52.509  16.00208282470703  -  Server - Script:7
  21:50:52.509  16.00208282470703  -  Server - Script:8
  21:50:52.626  16.00208282470703  -  Server - Script:7
  21:50:52.626  16.00208282470703  -  Server - Script:8
  21:50:52.742  16.00208282470703  -  Server - Script:7
  21:50:52.743  16.00208282470703  -  Server - Script:8
  21:50:52.858  16.00208282470703  -  Server - Script:7
  21:50:52.859  16.00208282470703  -  Server - Script:8
  21:50:52.959  16.00208282470703  -  Server - Script:7
  21:50:52.959  16.00208282470703  -  Server - Script:8
  21:50:53.075  16.00208282470703  -  Server - Script:7
  21:50:53.075  16.00208282470703  -  Server - Script:8
  21:50:53.176  15.949713706970215  -  Server - Script:7
  21:50:53.176  15.946513175964355  -  Server - Script:8
  21:50:53.292  16.001155853271484  -  Server - Script:7
  21:50:53.292  15.999266624450684  -  Server - Script:8
  21:50:53.410  16.0039005279541  -  Server - Script:7
  21:50:53.410  16.00208282470703  -  Server - Script:8
  21:50:53.525  16.002302169799805  -  Server - Script:7
  21:50:53.525  16.00208282470703  -  Server - Script:8
  21:50:53.626  16.002117156982422  -  Server - Script:7
  21:50:53.626  16.00208282470703  -  Server - Script:8
  21:50:53.741  15.99978256225586  -  Server - Script:7
  21:50:53.742  15.999266624450684  -  Server - Script:8
  21:50:53.859  15.999326705932617  -  Server - Script:7
  21:50:53.860  15.999266624450684  -  Server - Script:8
  21:50:53.976  15.999272346496582  -  Server - Script:7
  21:50:53.976  15.999266624450684  -  Server - Script:8
  21:50:54.092  16.002716064453125  -  Server - Script:7
  21:50:54.092  16.001951217651367  -  Server - Script:8
  21:50:54.209  16.002172470092773  -  Server - Script:7
  21:50:54.209  16.00208282470703  -  Server - Script:8
  21:50:54.325  16.002094268798828  -  Server - Script:7
  21:50:54.325  16.00208282470703  -  Server - Script:8
  21:50:54.426  16.00208282470703  -  Server - Script:7
  21:50:54.426  16.00208282470703  -  Server - Script:8
  21:50:54.543  15.455781936645508  -  Server - Script:7
  21:50:54.543  15.454970359802246  -  Server - Script:8
  21:50:54.659  16.002639770507812  -  Server - Script:7
  21:50:54.659  16.00208282470703  -  Server - Script:8
  21:50:54.776  16.00054359436035  -  Server - Script:7
  21:50:54.776  15.999267578125  -  Server - Script:8
  21:50:54.893  38.89033889770508  -  Server - Script:7
  21:50:54.893  38.889854431152344  -  Server - Script:8
  21:50:55.009  24.689022064208984  -  Server - Script:7
  21:50:55.009  24.688833236694336  -  Server - Script:8

However, this just could be the times that they fired

However, it would be a lot faster to just get it from the character property than using the function

2 Likes