How to make a lightning that move into Position?

Hi, Today i want to know, How to make lightning that move into position

I have try to search in DevForum already, but i don’t see anything that related to my problem


Well to do this Ray Casting will be the best option.

but i want it to do random move first, then go to target

like real thunder, because im doing some power.