So I do not know what I am doing wrong but I set the collision group of “Player” off but nothing works.
Here is the code:
local PS = game:GetService("PhysicsService")
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
for i, object in ipairs(char:GetDescendants()) do
if object:IsA('BasePart') then
print("works")
PS:SetPartCollisionGroup(object, "Player")
end
end
end)
end)