-- when player is added

game.Players.PlayerAdded:Connect( function(Player)
	Player.CharacterAdded:Connect( function(Char)
		-- get character geometry 
		for _,part in pairs(Char:GetChildren()) do
			if( part:IsA("BasePart") or part:IsA("MeshPart")) then
				-- set collision group
				PhysicsService:SetPartCollisionGroup(part,"Player")
			end
		end
	end)
end)

