R6 npcs still colliding after CanCollide turned off?

So I’m not sure if it’s my script that is causing this, or something else. But, I am making a Zombie wave system, but for some reason the zombies keep colliding with eachother. I have turned off CanCollide aswell.

I keep CanTouch on since for touching the Exit, and even with it off they still collide.

This is my script:

local pathName = "Path"
local speed = 6

local path = game.Workspace:FindFirstChild(pathName)

local zombie = script.Parent

local humanoid = zombie:FindFirstChildOfClass("Humanoid")

humanoid.WalkSpeed = speed

if zombie.Parent == game.Workspace then
	wait()
	humanoid:MoveTo(path.Checkpoint1.Position)
	humanoid.MoveToFinished:Wait()
	humanoid:MoveTo(path.Checkpoint2.Position)
	humanoid.MoveToFinished:Wait()
	humanoid:MoveTo(path.Checkpoint3.Position)
	humanoid.MoveToFinished:Wait()
	humanoid:MoveTo(path.Checkpoint4.Position)
	humanoid.MoveToFinished:Wait()
	humanoid:MoveTo(path.Checkpoint5.Position)
	humanoid.MoveToFinished:Wait()
	humanoid:MoveTo(path.Checkpoint6.Position)
	humanoid.MoveToFinished:Wait()
	humanoid:MoveTo(path.Checkpoint7.Position)
	humanoid.MoveToFinished:Wait()
end

print("Zombie has reached the end of the path")

And here’s the collision image:
image

I’d suggest looking into collision group. This article might help. Collision Filtering | Roblox Creator Documentation

1 Like

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