Hi, so I am making an NPC that shoots people, but when the NPC walks, it doesnt play the normal roblox walking animation. Maybe it is because I am playing other animations, so it might override the roblox walking animation?
Im not sure, if anyone has a solution, let me know!
local function WalkTarget(target)
print('Walking towards target')
local path = game:GetService("PathfindingService"):CreatePath()
path:ComputeAsync(Btorso.Position, target.Position)
local waypoints = path:GetWaypoints()
for i, waypoint in pairs(waypoints) do
if waypoint.Action == Enum.PathWaypointAction.Jump then
Bhumanoid.Jump = true
end
Bhumanoid:MoveTo(waypoint.Position)
end
end