I am trying to get team based doors, however my player cannot get through their own teams door. As is shown here, the team door has BluePlayers collisions off, so blue players should be allowed through
And here shows my character has the BluePlayers collision group
--// Set collision filtering
function CollisionManager.Setup(character, team)
if not GameSettings:GetAttribute("Teams") then return end -- Not a team gamemode
for _, child in ipairs(character:GetChildren()) do
if child:IsA("BasePart") then
PhysicsService:SetPartCollisionGroup(child, team .. "Players")
end
end
character.DescendantAdded:Connect(function(descendant)
if descendant:IsA("BasePart") then
PhysicsService:SetPartCollisionGroup(descendant, team .. "Players")
end
end)
end