Players.PlayerAdded:connect(function(k)k.CharacterAdded:Connect(function(k)local function u(k)if k:IsA("\066\097\115\101\080\097\114\116")then PhysicsService:SetPartCollisionGroup(k,"\082\097\099\101\067\097\114\115")end end k.ChildAdded:Connect(u)script.Parent.ChildAdded:Connect(u)for k,B in pairs(k:GetChildren())do u(B)end end)end)

Players.PlayerAdded:connect(function(Player)
 Player.CharacterAdded:Connect(function(Character)
  --Run on every part that is added to the character
  local function ChangeGroup(Part)
   if Part:IsA("BasePart") then --Make sure we're dealing with any type of part
    PhysicsService:SetPartCollisionGroup(Part, "RaceCars") --Set the part's collision group
   end
  end
  
  --Run above function on any parts that are added to the character from this point
  Character.ChildAdded:Connect(ChangeGroup)
  script.Parent.ChildAdded:Connect(ChangeGroup)
  
  --Run above function on any parts that may already exist
  for _, Object in pairs(Character:GetChildren()) do
   ChangeGroup(Object)
  end
 end)
end) 
