Need help fixing my script (makes splines into a branching mesh)