I want to create a system of a ball or some kind of object that will have to fly in the specified direction (only in X and Z coordinates) for a long time and kill all life in its path.
That’s about it:
Just like in all io games.
How do I direct the part to fly somewhere? Please tell me where to start and in which direction to go, or maybe there is a suitable guide on this topic. I can make part kill people touching it, but I don’t understand how to send it in some direction.
This is actually a difficult subject for something so basic. Dealing with hackers and lag turns it into a major task. This is why people use rays and other solutions/compromises that involve a ServerScript. I’d look for examples and tutorials related to the task. This may turn into a deep dive, depending on how far you want to go with it. You could handle this easily from a ClientScript. LinearVelocity, TweenService, or Lerp could be used and are good starting points, no matter how you approach it. A lot of the ones you see in games are not what you think you’re seeing and may take some out of the box thinking with some trickery to do well.