Making crack effect

Script it to have a percentage type system that at the end of every segment of the crack has a 25% (or whatever you find works best) chance of splitting into 2 more cracks, each with the segment of code that may split again.
Seems your script isn’t checking to see the length of the crack it creates. Maybe use a random number generator that decides at the beginning how many loops the code will run through to create segments before splitting again?

1 Like