How to make units move in columns or like this game?

ddasd

how did they make them move in the directions of the lines? and not all units move at one position

trying to achieve something like this🔽

1 Like

Those who made that just adding some randomness to their end position. You can do that to by just adding this vector:

local randomVector = Vector3.new(math.random()-0.5,math.random()-0.5,math.random()-0.5) * Intensity

to the end position for each unit.

2 Likes

thanks for letting me know but do you know how to script something like the second image (i just editted the post)

1 Like

This would be quite tough to do. What you could do is get the directions the units should move i.e the average center of the entire group of units towards the mouse position and then you would have to get the distance of the center of the units to the mouse location and then multiply the direction with the distance and then make the units walk to their center location + group to mouse direction * distance to mouse. It’s a bit confusing I know. If you don’t understand, then don’t hesitate to ask me.