How to get the length a fastcast projectile travelled

Hello! so ive been a few months working with a fastcast handler someone made for me and ive been questioning how could i get the length that the projectile travelled since i wanna make that at a certain distance the dmgs /2 or a similar value the thing is idk how to get that length

1 Like

i don’t use fast cast alot, but if you can know the point where the projectile stopped moving, or hited something you can do something like

local endPosition = Projectile.CFrame.Position --- just example
local startPosition = startPos

local length = (endPosition - startPosition).Magnitude -- this gives you a distance between those two points, which pretty much is a length from point A to point B aswell
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.