Hello! I was scripting a lightning script which would feature raycasting so it doesn’t go through blocks. However…
The script is basically a node creator, it has a for i loop in which i would be Position Y, to start and end nodes then create beams between them, then, when it detects a block, it breaks the loop (not yet done).
The issue I’m having is, I want to make it so if it detects a block create an attachment where it has been detected and that would be the last attachment.
I’m on mobile right now so if im able to I’ll post the script, I’m stuck at the raycast part because for some reason the raycast won’t go in the direction I want.