Does anyone know how I could replicate this lightning effect that shoots out of the player?

https://streamable.com/hziyz7

I tried recreating this with parts, vector forces, beams, and attachments all together but couldn’t figure out how they made it have collisions when hitting the ground or anything like that.

raycast or touch event i think