Collision groups not working for rigs

im trying to make all players and NPC’s walk through each other but the collision groups aren’t working for the NPC’s, it says "ColisionGroup is not a valid member of Part “Workspace.Level 1 Dummy.Torso”

script.Parent = game:GetService("ServerScriptService")
local PhysService = game:GetService("PhysicsService")
local PlayerGroup = PhysService:RegisterCollisionGroup("plrs")
PhysService:CollisionGroupSetCollidable("plrs","plrs",false)

function NoCollide(model)
	for k,v in pairs (model:GetChildren()) do
		if v:IsA"BasePart" then
			if v.Name == "Head" then
				v.CanCollide = false
			else
				v.ColisionGroup = "plrs"
			end
		end
	end
end

for _, player in pairs(workspace:GetChildren()) do
	if player:FindFirstChild("Humanoid") then
		player:WaitForChild("HumanoidRootPart")
		player:WaitForChild("Head")
		player:WaitForChild("Humanoid")
		wait(0.1)
		NoCollide(player)
	end
end

(This is looped)

its CollisionGroup not ColisionGroup

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