LerpTo waypoints for enemies tower defense error

Lerping enemy with waypoints

“attempt to perform arithmetic (add) on number and nil” on the lerpto part

I have tried putting actual numbers instead of an offset and where RandomPos is which fixed the error but I doesn’t work properly (I expected just wanted to see what would happen)


Screenshot 2024-02-29 181836

Waypoints on path as shown, when its shows waypoints[waypoint]:FindFirstChild(“A”) and the other being (“B”) the waypoints have parts named “A” and “B” the actual waypoint is located on the actual corner and A and B is locted on sides for better turns and such.

you wrote

local startCFrame = newMob.PrimaryPart.Position

Do you want me to use HumanoidRootPart instead?

I have fixed the issue and it’s perfect now, waypoints I set up wrong and fixed and I put math random for randompos and anchored HRP and took off networkownerset nil etc.

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