Hello, I am trying to shoot a trail of particles from a player. I want it to stop whenever it hits a block or a player. Currently, I am planning on firing a snowball from the player and spawning particles behind it as it flies. Does anyone know of a better way to do this?
Edit: I forgot about the BlockRay
API, I used it to trace a ray and spawn particles along the ray.