Fastcast how to destroy bullet when reaching max distance

In my fastcast code i have this

Castbehaviour.MaxDistance = 1000

However im wondering how i can destroy the bullet once it reaches the maxdistance?

The CastTerminating event is fired when the max distance is reached, so you can listen for it and delete the bullet there:

caster.CastTerminating:Connect(function()
    bullet:Destroy()
end)

But where do i get the bullet from?