Connect 2 parts without a gap

Isn’t there a way to space out the parts that you welded? Values*

Yes but there has to be an easier solution other than manually going to every single road and adding 3x the nodes.

Like how the gap filler plugin does it.

Oh yeah then use a plugin sure, so nodes are usually for like small paths I guess? Like let’s say a maze, you know the whole area. But like in let’s say a game like Piggy, the whole map is unpredictable and it would be very time consuming to place each node on such a huge map. So are nodes usually used for like smaller areas?

Well. Nodes can be used for that, but are also used for road GPS systems otherwise normal pathfinding wouldn’t work.

I can’t use a plugin because I’m not making the path manually, I’m making it with code.

Then I think you could adjust these two variables, maybe offset it a bit.

Or this too instead if you don’t want to change the actual goal or start, you can adjust the lerp percentage possibly.

May I also recommend that you use task.wait(.5) as it’s more accurate, and also do a while true do loop instead:

while true do
task.wait(.5) -- Put this at the end
end

Because with your current code you are yielding for no reason at the beginning.

Alright. I also found this devforum post about the same topic but I don’t understand how I can implement it into my code.

I’m getting off so I won’t be able to test things till tomorrow.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.