Hello there! Recently I have had this problem where my PhysicsService is not working and it is driving me CRAZY!
game.Players.PlayerAdded:Connect(function(plr)
local plrGroupRank = module.GetPlrRank(groupId,plr)
local rank = plr:WaitForChild("leaderstats").Rank
rank.Value = plrGroupRank
plr.CharacterAdded:Connect(function()
PhysicsService:SetPartCollisionGroup(workspace.BarBlockOff,"Doors")
PhysicsService:SetPartCollisionGroup(workspace.BarBlockDoor,"Doors")
PhysicsService:SetPartCollisionGroup(workspace.ReceptionBlockOff,"Doors")
PhysicsService:CollisionGroupSetCollidable("Doors", "Plrs", false)
for _,v in ipairs(plr.Character:GetChildren()) do
if v:IsA("BasePart") then
PhysicsService:SetPartCollisionGroup(v,"Plrs")
print(PhysicsService:CollisionGroupContainsPart("Plrs",v))
print(PhysicsService:CollisionGroupsAreCollidable("Plrs","Doors"))
end
end
end)
end)
My two checks print exactly what I want, but my character just does not go through the doors! Please help!