TDS Movement & Placing System

Hello there,
Recently with my friends we have started working on a tower defense simulator game, and i’m having problems deciding how to write a good enemy movement system & a tower placing system.

I already wrote a system, using MoveTo, but i’ve heard it’s pretty bad if there are too much enemies.

I’ve seen numerous posts already on using TweenService, but aren’t there any other way? Or is TweenService the best option to go with?

regarding a tower placing system. I’m currently using raycasts to get the correct position,

    local pos = UserInputService:GetMouseLocation()
    local ray = workspace.CurrentCamera:ViewportPointToRay(pos.X, pos.Y)
    local params = RaycastParams.new()
    params.FilterType = Enum.RaycastFilterType.Exclude
    params.FilterDescendantsInstances = {exclude}
    local result = workspace:Raycast(ray.Origin, ray.Direction * 100, params)
    return result

There are some bugs, and i’m wondering if there is a more efficient way than this?

Also, sorry if this isn’t well written as this is my first post here, and this might not be the correct category, thank you :slight_smile:

1 Like

For the movement system, you can use omrezkeypie’s BezierPath module.

1 Like

I will def take a look at it, thank you! :slight_smile:

Marking this as a solution as its the main subject of the topic, but do you have any tips to give on the tower placing?