Here’s what I am trying to do:

Visuals: https://gyazo.com/f99a9bb5d4ecae1aa63468a43d96d7d7

Explanation: so, basically I am trying to do is make the units deploy on *land*, not in just a random place in the water, how would I achieve that?

Make multiple invisible part on the beach then find the closest part from the boat. From there have the thing spawn relative to the position of the invisible part + sin(math.random()) * 2 for x and cos(math.random()) *2 for z offset

1 Like

Heyo! Thank you. But’s what do the cos(math.random()) *2 do? I know it means cosine, but I never used it/learned about it in school.

it gets the cosine point of the unit circle. We are basically generating a random point on a circle. See my video here

1 Like

Thanks! I really appreciate it man!